diff --git a/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs b/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs index c6806f6..dcf6d48 100644 --- a/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs +++ b/WalletConnectSharp.Sign/Models/Engine/ConnectOptions.cs @@ -165,12 +165,22 @@ public ConnectOptions WithOptions(ProtocolOptions options) return this; } + /// + /// Set the expiry duration for the session + /// + /// The amount of seconds that should pass before the session expires + /// This object, acts a builder function public ConnectOptions WithExpiry(long seconds) { Expiry = seconds; return this; } + /// + /// Set the expiry duration for the session + /// + /// The amount of time that should pass before the session expires + /// This object, acts a builder function public ConnectOptions WithExpiry(TimeSpan expiry) { Expiry = (long)expiry.TotalSeconds;