Web3AuthOptions constructor

Web3AuthOptions({
  1. required String clientId,
  2. required Network network,
  3. BuildEnv? buildEnv = BuildEnv.production,
  4. String? sdkUrl,
  5. String? walletSdkUrl,
  6. required Uri redirectUrl,
  7. WhiteLabelData? whiteLabel,
  8. HashMap<String, LoginConfigItem>? loginConfig,
  9. bool? useCoreKitKey,
  10. ChainNamespace? chainNamespace = ChainNamespace.eip155,
  11. int? sessionTime = 86400,
  12. MfaSettings? mfaSettings,
})

Implementation

Web3AuthOptions({
  required this.clientId,
  required this.network,
  this.buildEnv = BuildEnv.production,
  String? sdkUrl,
  String? walletSdkUrl,
  required this.redirectUrl,
  this.whiteLabel,
  this.loginConfig,
  this.useCoreKitKey,
  this.chainNamespace = ChainNamespace.eip155,
  this.sessionTime = 86400,
  this.mfaSettings,
})  : chainConfig = null,
      sdkUrl = sdkUrl ?? getSdkUrl(buildEnv ?? BuildEnv.production),
      walletSdkUrl =
          walletSdkUrl ?? getWalletSdkUrl(buildEnv ?? BuildEnv.production);