Open RobTS opened 1 year ago
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...
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: