Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140641

Refresh Firebase Token

$
0
0

I'm using web firebase javascript to authenticate by email and password. This process generates a token which I use to verify on my nodejs backend using firebase-admin. Once this token is generated, I store it on the browser local/session storage.

The front end is AngularJs which I intercept the http request to inject the token stored within the browser.

This is working fine, however after a while this token expire. So what would be the best way to refresh this token before it sends to the nodejs api?

Note: should I requet the currentUser.getToken() every request?


Viewing all articles
Browse latest Browse all 140641

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>