-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_auth ] User auth state not persisted through sessions #9199
Comments
We're also experiencing this on the web, which is a dealbreaker. Are you experiencing this on mobile, web or both? In conjunction with #9106 and #9124 and #9195, amongst others, we had to rollback the entire latest Flutterfire release since they interconnect. Here is the only working pubspec configuration we've found:
|
Seems like this is related to the switch from CDN version of Firebase JS libraries to the built-in version. Anything |
Yes, I'm experiencing this only on web and not on android.
Similar to this issue, only on web, uploading file using |
For that it seems there a function to persist auth state locally (on web only) FirebaseAuth.instance.setPersistence(Persistence.LOCAL); But instead of storing auth data in |
Interestingly, I haven't noticed its use of |
OK, with this setting it does persist the session to local storage, but then on refresh still a new session is used (and persisted).. |
Yep, even if persistence is set, the state is lost on refresh. |
Any ideas on what causes this loss? |
Same issue here |
We are experiencing this as well and it's causing us a lot of problems. All authentication state is lost on a reload of the application 😢 |
Same here. |
@OutdatedGuy and everyone facing this issue, there's similar issue open describing your case, #9089, so please follow-up in it for further updates. There's an active PR to fix this issue that you can subscribe to: #9138 |
Bug report
Describe the bug
Since I upgraded to
firebase_auth: ^3.5.0
, the user auth state is not stored and is changing for each session and refresh.I'm using anonymous signin which was working perfectly before the upgrade.
Expected behavior
User auth state persists throughout sessions
Sample project
https://github.com/OutdatedGuy/Whats-That-Anime
Additional context
In sample project with
firebase_auth: ^3.3.19
, everything works fine, but forfirebase_auth: ^3.5.0
the problem occursFlutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: