MultiFactorProviderConfig constructor

MultiFactorProviderConfig({
  1. required MultiFactorConfigState state,
  2. TotpMultiFactorProviderConfig? totpProviderConfig,
})

Creates a new MultiFactorProviderConfig instance.

Implementation

MultiFactorProviderConfig({required this.state, this.totpProviderConfig}) {
  // Since TOTP is the only provider config available right now, it must be defined
  if (totpProviderConfig == null) {
    throw FirebaseAuthAdminException(
      AuthClientErrorCode.invalidConfig,
      '"totpProviderConfig" must be defined.',
    );
  }
}