Skip to content

Upgrading firebase_auth 5 to 6

Breaking5.7.0 β†’ 6.7.1Breaking1New6Changed6Fixed17Other12

BreakingUpgrade verdict

1 breaking change.

  • Several old ways of doing things have been removed and must be replaced with the newer alternatives.
1 item needs code or config changes

Dart SDK requirement changed in 6.5.0: >=3.2.0 <4.0.0 β†’ ^3.6.0.

Breaking1
Removes deprecated functions including ActionCodeSettings.dynamicLinkDomain, MicrosoftAuthProvider.credential(), the instanceFor persistence parameter, fetchSignInMethodsForEmail() and…
ActionCodeSettings.dynamicLinkDomainMicrosoftAuthProvider.credential()FirebaseAuth.instanceFor()FirebaseAuth.fetchSignInMethodsForEmail()User.updateEmail()ActionCodeSettings.linkDomainsetPersistence()verifyBeforeUpdateEmail()

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: method FirebaseAuth.fetchSignInMethodsForEmail(String email): Future<List<String>>
  • removed: method User.updateEmail(String newEmail): Future<void>
  • changed: class FirebaseAuth extends FirebasePluginPlatform β†’ class FirebaseAuth extends FirebasePlugin implements FirebaseService
  • changed: ctor FirebaseAuth.instanceFor({ required FirebaseApp app, @Deprecated( 'Will be removed in future release. Use setPersistence() instead.', ) Persistence? persistence, }) β†’ ctor FirebaseAuth.instanceFor({ required FirebaseApp app, })
  • changed: method FirebaseAuth.setSettings({ bool appVerificationDisabledForTesting = …, String? userAccessGroup, String? phoneNumber, String? smsCode, bool? forceRecaptchaFlow, }): Future<void> β†’ method FirebaseAuth.setSettings({ bool appVerificationDisabledForTesting = …, String? userAccessGroup, bool migrateCurrentUser = …, String? phoneNumber, String? smsCode, bool? forceRecaptchaFlow, }): Future<void>
  • added: method FirebaseAuth.revokeAccessToken(String accessToken): Future<void>
  • added: method FirebaseAuth.validatePassword( FirebaseAuth auth, String? password, ): Future<PasswordValidationStatus>