firebase_auth_mocks
Fakes for Firebase Auth. Use this package with `google_sign_in_mocks` to write unit tests involving Firebase Authentication.
0.15.2
103K downloads/mo
#1113 most downloaded on pub.dev
atn832/firebase_auth_mocks
What this package is like to depend on
Last release 3 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
2 releases in the last 12 months
see the full history below
Release timeline
43 releases · Nov 2019 to May 2026Releases
latest 43-
0.15.216 May 2026Release notes
Open source →Upgraded firebase_auth_platform_interface dependency to ^9.0.0. PR-127. Thank you Wim-Hexagons!
-
0.15.126 Sep 2025 -
0.15.031 Jul 2025 -
0.14.203 Jun 2025 -
0.14.105 Sep 2024 -
0.14.005 Jun 2024 -
0.13.019 Oct 2023Release notes
Open source →Upgraded uuid to ^4.1.0 and firebase_auth_platform_interface to ^7.0.0. Thank you Rexios80 and https://github.com/kody-liou!
-
0.12.016 Jul 2023Release notes
Open source →- Fixed compilation issues due to breaking changes in firebase_auth_platform_interface (PR-99). Thank you gnurik!
-
0.11.013 Mar 2023Release notes
Open source →- BREAKING CHANGE: Replaced the
MockUser.exceptionpattern bywhenCalling(...).on(...).thenThrow(...)(PR-95). FirebaseAuth.createUserWithEmailAndPasswordreturnsProviderData. Thank you robyf!- Implemented
User.updatePhotoURL. Thank you bifrostyyy! - Implemented
User.linkWithProvider, andUser.unlink. Thank you bifrostyyy! - Make
User.reloadthrow exceptions on demand (9ad29f0).
- BREAKING CHANGE: Replaced the
-
0.10.310 Jan 2023Release notes
Open source →Fixed a bug where
MockUserCredential.userwould create a new MockUser at every call, in the anonymous case. -
0.10.209 Jan 2023Release notes
Open source →Implemented
authForFakeFirestorefor Fake Cloud Firestore's security rules. -
0.10.2+109 Jan 2023Release notes
Open source →Make
authForFakeFirestoresend 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. -
0.10.108 Jan 2023Release notes
Open source →User.getIdTokenResultwill returncustomClaimsifidTokenResultis not explicitly set. -
0.10.008 Jan 2023Release notes
Open source →BREAKING CHANGE. Use the
whenCalling(...).on(...).thenThrow(...)pattern instead ofAuthExceptions(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.
-
0.9.308 Jan 2023Release notes
Open source →- Implemented
FirebaseAuth.signInWithPopupandFirebaseAuth.signInWithProvider. Thanks ga-bri-el!
- Implemented
-
0.9.229 Nov 2022Release notes
Open source →- Fixed a crash when testing in signed in mode for an anonymous user. Thanks BenVercammen!
- Fixed
User.displayNameso that it returnsnullby default. Thanks BenVercammen!
-
0.9.106 Nov 2022Release notes
Open source →- Implemented
FirebaseAuth.fetchSignInMethodsForEmail. Thanks BenVercammen! - Implemented
User.linkWithCredential. Thanks BenVercammen! - Support setting a
customClaimforUser.getIdToken. Thanks kody-liou!
- Implemented
-
0.9.022 Oct 2022 -
0.8.722 Oct 2022 -
0.8.623 Sep 2022 -
0.8.525 Jul 2022Release notes
Open source →- Changed
FirebaseAuth.verifyPhoneNumber's signature to include firebase_auth 3.5.0's new multi factor params. Thanks cedvdb and cselti! - Implemented
FirebaseAuth.sendPasswordResetEmail. Thanks Zohenn! - Implemented
User.sendEmailVerification. Thanks dipeshdulal!
- Changed
-
0.8.5+125 Jul 2022 -
0.8.405 Apr 2022Release notes
Open source →- Support throwing exceptions in FirebaseAuth's
signInWithCredential,signInWithEmailAndPassword,createUserWithEmailAndPassword,signInWithCustomToken,signInAnonymously, andfetchSignInMethodsForEmail. Thanks defuncart! - Implemented
FirebaseAuth.verifyPhoneNumberso that it resolvescodeSent. Thanks cedvdb!
- Support throwing exceptions in FirebaseAuth's
-
0.8.329 Mar 2022 -
0.8.226 Dec 2021Release notes
Open source →- Made
userChangesandauthStateChangesfirenullon startup when signed out. - Turned
userChangesandauthStateChangesinto broadcast streams so they can be listened to more than once. - Added
providerDatain MockUser. Thanks kornperkus!
- Made
-
0.8.115 Sep 2021Release notes
Open source →- Implemented
FirebaseAuth.userChanges. Thanks mazzonem! - Implemented
User.updateDisplayName. Thanks oudehomar! - Implemented
FirebaseAuth.fetchSignInMethodsForEmail. Thanks ketanchoyal!
- Implemented
-
0.8.016 Jul 2021 -
0.7.114 Jun 2021 -
0.7.006 Jun 2021Release notes
Open source →- Removed dependency to Mockito.
- Updated dependency to firebase_auth ^1.3.0.
-
0.6.013 Mar 2021Release notes
Open source →- Migrated to null safety. Thanks YusufAbdelaziz!
- Updated dependency to firebase_auth ^1.0.1. Thanks zariweyo!
-
0.5.225 Feb 2021 -
0.5.125 Jan 2021 -
0.5.025 Jan 2021Release notes
Open source →Breaking change:
- Require supplying a
MockUserinstead of returning 'Bob'. Thanks PieterHartzer!
Refer to README.md on how to use it.
- Require supplying a
-
0.4.020 Jan 2021 -
0.3.205 Oct 2020Release notes
Open source →- Support the newer
authStateChanges()on top of the deprecatedget onAuthStateChanged. Thanks gallrein!
- Support the newer
-
0.3.105 Sep 2020 -
0.3.005 Sep 2020Release notes
Open source →- Support the breaking changes of firebase_auth 0.18.0+1.
- Removed
signInWithEmailAndLinksince it's not part of the API anymore.
-
0.2.113 Jul 2020 -
0.2.010 May 2020 -
0.1.320 Mar 2020Release notes
Open source →- Added support for
signInWithEmailAndPassword,signInWithEmailAndLinkandsignInWithCustomToken. - Documented supported features
- Added support for
-
0.1.211 Feb 2020 -
0.1.116 Dec 2019 -
0.1.015 Nov 2019