DEV Community

Discussion on: Securing your express/Node.js API with Firebase auth

Collapse
 
vignzpie profile image
Vignesh Pai

@emeka , Can you add to it?

Collapse
 
emeka profile image
Nwakwoke Patrick Nnaemeka

Firebase handles that for you, just call the getIdToken function when you need a token

Thread Thread
 
gabrielem profile image
Gabriele Marazzi

this is not 100% correct, to force firebase to refresh the token you need to add a true in the function getIdToken(true) otherwise you get the same token until it expire.