EmailIdpOtpLoginUtilsConfig class
Configuration for the EmailIdpOtpLoginUtil class.
Constructors
- EmailIdpOtpLoginUtilsConfig({required String otpLoginVerificationCodeGenerator(), required Duration otpLoginVerificationCodeLifetime, required int otpLoginVerificationCodeAllowedAttempts, required RateLimit maxOtpLoginAttempts, required SendOtpLoginVerificationCodeFunction? sendOtpLoginVerificationCode, required SendRegistrationVerificationCodeFunction? sendRegistrationVerificationCode, required bool allowPasswordOnOtpRegistration, required PasswordValidationFunction passwordValidationFunction, required AfterAccountCreatedFunction? onAfterAccountCreated})
- Creates a new EmailIdpOtpLoginUtilsConfig instance.
- EmailIdpOtpLoginUtilsConfig.fromEmailIdpConfig(EmailIdpConfig config)
-
Creates a new EmailIdpOtpLoginUtilsConfig instance from an
EmailIdpConfig instance.
factory
Properties
- allowPasswordOnOtpRegistration → bool
-
Whether a password may be set when creating an account.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxOtpLoginAttempts → RateLimit
-
The rate limit for requesting one-time passwords for the same email.
final
- onAfterAccountCreated → AfterAccountCreatedFunction?
-
Callback to be invoked after a new email account has been created.
final
- otpLoginVerificationCodeAllowedAttempts → int
-
The number of allowed attempts to verify a one-time password.
final
- otpLoginVerificationCodeGenerator → String Function()
-
Function for generating the one-time password.
final
- otpLoginVerificationCodeLifetime → Duration
-
The lifetime of the one-time password.
final
- passwordValidationFunction → PasswordValidationFunction
-
Function for validating the password.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendOtpLoginVerificationCode → SendOtpLoginVerificationCodeFunction?
-
Function for sending the one-time password.
final
- sendRegistrationVerificationCode → SendRegistrationVerificationCodeFunction?
-
Function for sending the one-time password when
sendOtpLoginVerificationCode is not set.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited