EmailIdpAccountCreationUtilsConfig.fromEmailIdpConfig constructor

EmailIdpAccountCreationUtilsConfig.fromEmailIdpConfig(
  1. EmailIdpConfig config
)

Creates a new EmailIdpAccountCreationUtilsConfig instance from an EmailIdpConfig instance.

Implementation

factory EmailIdpAccountCreationUtilsConfig.fromEmailIdpConfig(
  final EmailIdpConfig config,
) {
  return EmailIdpAccountCreationUtilsConfig(
    passwordValidationFunction: config.passwordValidationFunction,
    registrationVerificationCodeGenerator:
        config.registrationVerificationCodeGenerator,
    registrationVerificationCodeLifetime:
        config.registrationVerificationCodeLifetime,
    registrationVerificationCodeAllowedAttempts:
        config.registrationVerificationCodeAllowedAttempts,
    sendRegistrationVerificationCode: config.sendRegistrationVerificationCode,
    onAfterAccountCreated: config.onAfterAccountCreated,
  );
}