-
Notifications
You must be signed in to change notification settings - Fork 4k
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_web] Credentials Persistence #1771
Comments
The issue as we see it is that the web and iOS/Android versions behave differently. During iOS restart, restoring the user from a previous session with Since we have other state that tells us that we do have a user, we wait for the state to change: final maybeUser = await firebaseAuth.onAuthStateChanged
.timeout(Duration(seconds:5)) // Throws TimeoutException on expiration
.firstWhere( (user) => user != null )
.then( (user) => Some( user ) )
.catchError( (_) => None() ); Note that this code is waiting on Firebase authentication internal initialization to occur. Since using
|
any updates on this issue ? |
Curious on this too. Seems inconsistent in it's implementation. |
Hey 👋 Our rework of the Support for changing persistence settings was added, see: https://firebase.flutter.dev/docs/auth/usage#persisting-authentication-state For help migrating to the new plugins please see the new migration guide: https://firebase.flutter.dev/docs/migration |
On page reload I am loosing currentUser, there is no persistence present ?
The text was updated successfully, but these errors were encountered: