问题
I am using anonymous authentication with Firebase. I know that I can set x
hours of session timeout.
To me, it doesn't make sense to timeout a user when he/she is active on the site. Is there a way to extend a user's session when the website is being used actively?
回答1:
There is currently no way to extend or refresh a Firebase authentication token after it's been minted.
You can monitor .info/authenticated to detect when the user gets unauthenticated.
来源:https://stackoverflow.com/questions/34284497/extending-firebase-anonymous-auth-session-expiry