AuthConfig constructor
AuthConfig({
- int maxAllowedEmailSignInAttempts = 5,
- Duration emailSignInFailureResetTime = const Duration(minutes: 5),
- bool enableUserImages = true,
- bool importUserImagesFromGoogleSignIn = true,
- int userImageSize = 256,
- UserImageType userImageFormat = UserImageType.jpg,
- int userImageQuality = 70,
- UserImageGenerator userImageGenerator = defaultUserImageGenerator,
- bool userCanEditUserImage = true,
- bool userCanEditUserName = true,
- bool userCanEditFullName = false,
- bool userCanSeeUserName = true,
- bool userCanSeeFullName = true,
- Duration userInfoCacheLifetime = const Duration(minutes: 1),
- UserInfoCreationCallback? onUserWillBeCreated,
- UserInfoUpdateCallback? onUserCreated,
- UserInfoUpdateCallback? onUserUpdated,
- SendPasswordResetEmailCallback? sendPasswordResetEmail,
- SendValidationEmailCallback? sendValidationEmail,
- Duration passwordResetExpirationTime = const Duration(hours: 24),
- bool extraSaltyHash = true,
- String firebaseServiceAccountKeyJson = 'config/firebase_service_account_key.json',
Creates a new Auth configuration. Use the set method to replace the
default settings. Defaults to config/firebase_service_account_key.json
.
Implementation
AuthConfig({
this.maxAllowedEmailSignInAttempts = 5,
this.emailSignInFailureResetTime = const Duration(minutes: 5),
this.enableUserImages = true,
this.importUserImagesFromGoogleSignIn = true,
this.userImageSize = 256,
this.userImageFormat = UserImageType.jpg,
this.userImageQuality = 70,
this.userImageGenerator = defaultUserImageGenerator,
this.userCanEditUserImage = true,
this.userCanEditUserName = true,
this.userCanEditFullName = false,
this.userCanSeeUserName = true,
this.userCanSeeFullName = true,
this.userInfoCacheLifetime = const Duration(minutes: 1),
this.onUserWillBeCreated,
this.onUserCreated,
this.onUserUpdated,
this.sendPasswordResetEmail,
this.sendValidationEmail,
this.passwordResetExpirationTime = const Duration(hours: 24),
this.extraSaltyHash = true,
this.firebaseServiceAccountKeyJson =
'config/firebase_service_account_key.json',
});