SIWEConfig constructor
SIWEConfig({
- required Future<
String> getNonce(), - required Future<
SIWEMessageArgs> getMessageParams(), - required String createMessage(),
- required Future<
bool> verifyMessage(), - 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,
Implementation
SIWEConfig({
required this.getNonce,
required this.getMessageParams,
required this.createMessage,
required this.verifyMessage,
required this.getSession,
required this.signOut,
this.onSignIn,
this.onSignOut,
this.enabled = true,
this.signOutOnDisconnect = true,
this.signOutOnAccountChange = true,
this.signOutOnNetworkChange = true,
this.nonceRefetchIntervalMs = 300000,
this.sessionRefetchIntervalMs = 300000,
});