MultiFactorProviderConfig constructor
MultiFactorProviderConfig({
- required MultiFactorConfigState state,
- 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.',
);
}
}