SIWEConfig constructor

SIWEConfig({
  1. required Future<String> getNonce(),
  2. required Future<SIWEMessageArgs> getMessageParams(),
  3. required String createMessage(
    1. SIWECreateMessageArgs args
    ),
  4. required Future<bool> verifyMessage(
    1. SIWEVerifyMessageArgs args
    ),
  5. required Future<SIWESession?> getSession(),
  6. required Future<bool> signOut(),
  7. dynamic onSignIn(
    1. SIWESession session
    )?,
  8. VoidCallback? onSignOut,
  9. bool enabled = true,
  10. bool signOutOnDisconnect = true,
  11. bool signOutOnAccountChange = true,
  12. bool signOutOnNetworkChange = true,
  13. int nonceRefetchIntervalMs = 300000,
  14. 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,
});