Skip to content
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

Fix FirebaseUser and userModel state mismatch issue on app launch (iOS). #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wilpar
Copy link

@wilpar wilpar commented May 2, 2023

Using current firebase package versions, if you stopped the app while you were logged in, you would end up with a null userModel but active user session on firebase, breaking the app flow.

The problem was on line 55 - you don't need to check for userModel.
I also added a bit of cleanup for error and loading states.

Tested on:

firebase_core: ^2.10.0
cloud_firestore: ^4.5.3
firebase_auth: ^4.4.2

Fix userModel state issue on app launch (iOS).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant