-
Notifications
You must be signed in to change notification settings - Fork 305
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
What's the suggestion for token refresh? #299
Comments
I am also facing with similar issues, so I am working on a Expo RN Mobile App, where I have Email auth using Firebase, it successfully, logs in and creates the user, but when I reload the app, the auth state is not logged in... |
Jonak-Adipta-Kalita
added a commit
to Jonak-Adipta-Kalita/JAK-Mobile-App
that referenced
this issue
Apr 30, 2023
…omment-1528963353
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a while, I have been wondering why my token is not refreshed automatically, despite using useIdToken. I come back to my machine after a break or the next morning, and get Auth issues.
So I did some research today and it seems (according to this docs update) that Firebase does in fact not handle it for us.
I can't seem to find a best practice suggestions in the docs of this hooks library, but believe an auto-refresh hook based on a timeout would be a great extension.
Edit: Something like that would do the trick, but uses non-public attributes:
The text was updated successfully, but these errors were encountered: