AuthConfig constructor

AuthConfig({
  1. int maxAllowedEmailSignInAttempts = 5,
  2. Duration emailSignInFailureResetTime = const Duration(minutes: 5),
  3. bool enableUserImages = true,
  4. bool importUserImagesFromGoogleSignIn = true,
  5. int userImageSize = 256,
  6. UserImageType userImageFormat = UserImageType.jpg,
  7. int userImageQuality = 70,
  8. UserImageGenerator userImageGenerator = defaultUserImageGenerator,
  9. bool userCanEditUserImage = true,
  10. bool userCanEditUserName = true,
  11. bool userCanEditFullName = false,
  12. bool userCanSeeUserName = true,
  13. bool userCanSeeFullName = true,
  14. Duration userInfoCacheLifetime = const Duration(minutes: 1),
  15. UserInfoCreationCallback? onUserWillBeCreated,
  16. UserInfoUpdateCallback? onUserCreated,
  17. UserInfoUpdateCallback? onUserUpdated,
  18. SendPasswordResetEmailCallback? sendPasswordResetEmail,
  19. SendValidationEmailCallback? sendValidationEmail,
  20. Duration passwordResetExpirationTime = const Duration(hours: 24),
  21. bool extraSaltyHash = true,
  22. 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',
});