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.
hi i am having trouble with the token because it only live for 1hour. My question is if i call 'getIdToken' on every request, can this cause a performance issue or will it billed me much on firebase ? Thanks
How can i refresh token when expires
@emeka , Can you add to it?
Firebase handles that for you, just call the getIdToken function when you need a token
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.Firebase handles that for you, just call the
getIdToken
function when you need a tokenhi i am having trouble with the token because it only live for 1hour. My question is if i call 'getIdToken' on every request, can this cause a performance issue or will it billed me much on firebase ? Thanks
You definitely won't be billed more and I haven't had any issues with performance because the request is really fast.