Android - Do Firebase User Auth Tokens Expire?
I decided to use Volley and go the RESTful route with Firebase since their listeners seem to hang when there's no internet connection. At least with Volley, it lets me know if a ne
Solution 1:
Yes, they do expire (you can check out the expiration date at jwt.io). If you don't force a refresh (i.e. user.getToken(false)
), the returned token will be updated only if it has expired. If you pass true
to getToken(...)
, a new token will be created which also involves the linked providers' token validation on the firebase servers (e.g. validating against Facebook whether the user still has his/her account linked). Note that the latter counts towards your daily token service quotas, so make sure you use it only when it's necessary.
Post a Comment for "Android - Do Firebase User Auth Tokens Expire?"