NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1128 most downloaded on pub.dev
Fakes for Firebase Auth. Use this package with `google_sign_in_mocks` to write unit tests involving Firebase Authentication.
Last release 4 months ago
16 May 2026
Release timing varies
gaps range from 3 weeks to 9 months
Nearly every release is documented
notes for 43 of 43 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
43 releases · first in 2019
Upgraded firebase_auth_platform_interface dependency to ^9.0.0. PR-127. Thank you Wim-Hexagons!
Upgraded firebase_auth_platform_interface dependency to ^9.0.0. PR-127. Thank you Wim-Hexagons!
Implemented idTokenChanges. PR-125. Thank you vinifig!
One column per quarter.
Upgraded firebase_auth dependency to ^6.0.0. PR-120. Thank you jt274!
Adds a maybeThrow into verifyPhoneNumber and User.verifyBeforeUpdateEmail. PR-113, PR-116. Thank you Tpow99!
Allow setting mockUser to null. PR-112.
Thank you michaelowolf!
Upgraded firebase_auth dependency to ^5.0.0. PR-108
Upgraded firebase_auth dependency to ^5.0.0. PR-108
Upgraded uuid to ^4.1.0 and firebase_auth_platform_interface to ^7.0.0. Thank you Rexios80 and https://github.com/kody-liou!
Upgraded uuid to ^4.1.0 and firebase_auth_platform_interface to ^7.0.0. Thank you Rexios80 and https://github.com/kody-liou!
Fixed compilation issues due to breaking changes in firebase_auth_platform_interface (PR-99). Thank you gnurik!
BREAKING CHANGE: Replaced the MockUser.exception pattern by whenCalling(...).on(...).thenThrow(...) (PR-95).
MockUser.exception pattern by whenCalling(...).on(...).thenThrow(...) (PR-95).FirebaseAuth.createUserWithEmailAndPassword returns ProviderData. Thank you robyf!User.updatePhotoURL. Thank you bifrostyyy!User.linkWithProvider, and User.unlink. Thank you bifrostyyy!User.reload throw exceptions on demand (9ad29f0).Fixed a bug where MockUserCredential.user would create a new MockUser at every call, in the anonymous case.
Fixed a bug where MockUserCredential.user would create a new MockUser at every call, in the anonymous case.
Make authForFakeFirestore send an event at the same time as the other two streams to fix race condition when Fake Cloud Firestore gets the latest user
Make authForFakeFirestore send an event at the same time as the other two streams to fix race condition when Fake Cloud Firestore gets the latest user to check security rules.
Implemented authForFakeFirestore for Fake Cloud Firestore's security rules.
Implemented authForFakeFirestore for Fake Cloud Firestore's security rules.
User.getIdTokenResult will return customClaims if idTokenResult is not explicitly set.
User.getIdTokenResult will return customClaims if idTokenResult is not explicitly set.
BREAKING CHANGE. Use the whenCalling(...).on(...).thenThrow(...) pattern instead of AuthExceptions (PR-87).
BREAKING CHANGE. Use the whenCalling(...).on(...).thenThrow(...) pattern instead of AuthExceptions (PR-87).
Instead of setting up your exception like this:
final auth = MockFirebaseAuth(
authExceptions: AuthExceptions(
signInWithCredential: FirebaseAuthException(code: 'something'),
),
);
Use:
whenCalling(Invocation.method(#signInWithCredential, null))
.on(auth)
.thenThrow(FirebaseAuthException(code: 'bla'));
You can also be more specific on when to throw the exception. See the README and https://pub.dev/packages/mock_exceptions.
Implemented FirebaseAuth.signInWithPopup and FirebaseAuth.signInWithProvider. Thanks ga-bri-el!
FirebaseAuth.signInWithPopup and FirebaseAuth.signInWithProvider. Thanks ga-bri-el!Fixed a crash when testing in signed in mode for an anonymous user. Thanks BenVercammen!
User.displayName so that it returns null by default. Thanks BenVercammen!Implemented FirebaseAuth.fetchSignInMethodsForEmail. Thanks BenVercammen!
FirebaseAuth.fetchSignInMethodsForEmail. Thanks BenVercammen!User.linkWithCredential. Thanks BenVercammen!customClaim for User.getIdToken. Thanks kody-liou!Updated dependency to firebase_auth ^4.0.0.
Implemented proper generation of the auth_time, exp and iat values in User.getIdToken. Thanks kody-liou!
Implemented generation of proper JWT token in User.getIdToken. Thanks kody-liou!
- Added missing changelogs.
Changed FirebaseAuth.verifyPhoneNumber's signature to include firebase_auth 3.5.0's new multi factor params. Thanks cedvdb and cselti!
FirebaseAuth.verifyPhoneNumber's signature to include firebase_auth 3.5.0's new multi factor params. Thanks cedvdb and cselti!FirebaseAuth.sendPasswordResetEmail. Thanks Zohenn!User.sendEmailVerification. Thanks dipeshdulal!Support throwing exceptions in FirebaseAuth's signInWithCredential, signInWithEmailAndPassword, createUserWithEmailAndPassword, signInWithCustomToken,
signInWithCredential, signInWithEmailAndPassword, createUserWithEmailAndPassword, signInWithCustomToken, signInAnonymously, and fetchSignInMethodsForEmail. Thanks defuncart!FirebaseAuth.verifyPhoneNumber so that it resolves codeSent. Thanks cedvdb!Implemented User methods reauthenticateWithCredential, updatePassword and delete with the ability to throw exceptions. Thanks defuncart!
Made userChanges and authStateChanges fire null on startup when signed out.
userChanges and authStateChanges fire null on startup when signed out.userChanges and authStateChanges into broadcast streams so they can be listened to more than once.providerData in MockUser. Thanks kornperkus!Implemented FirebaseAuth.userChanges. Thanks mazzonem!
FirebaseAuth.userChanges. Thanks mazzonem!User.updateDisplayName. Thanks oudehomar!FirebaseAuth.fetchSignInMethodsForEmail. Thanks ketanchoyal!Updated dependency to firebase_auth ^3.0.0.
User.reload().Implement User.metadata. Thanks mazzonem!
Updated dependency to firebase_auth ^1.3.0.
Migrated to null safety. Thanks YusufAbdelaziz!
Typed the arguments of MockUser's constructor. Thanks YusufAbdelaziz!
MockUser's constructor. Thanks YusufAbdelaziz!Support for signInWithPhoneNumber.
signInWithPhoneNumber.Require supplying a MockUser instead of returning 'Bob'. Thanks PieterHartzer!
Breaking change:
MockUser instead of returning 'Bob'. Thanks PieterHartzer!Refer to README.md on how to use it.
Updated dependency to firebase_auth ^0.20.0+1. Thanks Aanu1995!
Support the newer authStateChanges() on top of the deprecated get onAuthStateChanged. Thanks gallrein!
authStateChanges() on top of the deprecated get onAuthStateChanged. Thanks gallrein!- Support User.isAnonymous. - Support User.email.
User.isAnonymous.User.email.Support the breaking changes of firebase_auth 0.18.0+1.
signInWithEmailAndLink since it's not part of the API anymore.Added support for signInAnonymously and signOut. Thanks shepeliev!
signInAnonymously and signOut. Thanks shepeliev!Upgraded firebase_auth dependency to ^0.16.0.
Added support for signInWithEmailAndPassword, signInWithEmailAndLink and signInWithCustomToken.
signInWithEmailAndPassword, signInWithEmailAndLink and signInWithCustomToken.Implemented MockFirebaseUser.getIdToken(). Thanks dfdgsdfg!
MockFirebaseUser.getIdToken(). Thanks dfdgsdfg!Upgraded firebase_auth dependency to ^0.15.2.
- Initial version.
Your coding agent can read these notes before it upgrades. Set up the MCP server →