sidferreira / aor-firebase-client

Firebase client for Admin on Rest
MIT License
57 stars 29 forks source link

Automatically refresh token #37

Open afilp opened 6 years ago

afilp commented 6 years ago

Firebase token seems to expire every 1 hour.

This causes problems when there are actions to be made, is there a way to automatically refresh the token in the background before the hour expires? Or some other solution?

We want the logged-in user to remain logged-in until they choose to logout.

Thanks.

P.S. Similar discussion here (for Android apps though): https://stackoverflow.com/questions/38350843/how-to-handle-custom-firebase-token-expiry-in-firebase-3-x-x P.S. Using react-admin v2.1.2 (please update for latest react-admin, thanks!)

afilp commented 5 years ago

May I ask this again? I am not sure how to make it work, to automatically refresh the token so that the user is not logged out, unless they want it to.

Thanks!