Early into Firebase docs and really liking it so far. Being n00b, a conceptual question here - is the (JWT) token generated by Firebase authentication accessible client-side?
I'm looking to call some external service and want to leverage JWT as the security mechanism. So:
In essence, leverage existing Firebase mechanisms as a form of "gateway" to external service(s).
I saw an old answer here - "....token to survive page reloads, then you need to store it in some way so the client..." - is this token
the JWT
?
Thanks!
This is the right way to obtain firebase JWT token
firebase.auth().currentUser.getToken().then(function(token){
console.log(token);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With