SIWEConfig class
Constructors
-
SIWEConfig({required Future<
String> getNonce(), required Future<SIWEMessageArgs> getMessageParams(), required String createMessage(SIWECreateMessageArgs args), required Future<bool> verifyMessage(SIWEVerifyMessageArgs args), required Future<SIWESession?> getSession(), required Future<bool> signOut(), dynamic onSignIn(SIWESession session)?, VoidCallback? onSignOut, bool enabled = true, bool signOutOnDisconnect = true, bool signOutOnAccountChange = true, bool signOutOnNetworkChange = true, int nonceRefetchIntervalMs = 300000, int sessionRefetchIntervalMs = 300000})
Properties
- createMessage → String Function(SIWECreateMessageArgs args)
-
final
- enabled → bool
-
final
-
getMessageParams
→ Future<
SIWEMessageArgs> Function() -
final
-
getNonce
→ Future<
String> Function() -
final
-
getSession
→ Future<
SIWESession?> Function() -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonceRefetchIntervalMs → int
-
final
- onSignIn → dynamic Function(SIWESession session)?
-
final
- onSignOut → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionRefetchIntervalMs → int
-
final
-
signOut
→ Future<
bool> Function() -
final
- signOutOnAccountChange → bool
-
final
- signOutOnDisconnect → bool
-
final
- signOutOnNetworkChange → bool
-
final
-
verifyMessage
→ Future<
bool> Function(SIWEVerifyMessageArgs args) -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited