Firebase handles that for you, just call the getIdToken function when you need a token
getIdToken
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
You definitely won't be billed more and I haven't had any issues with performance because the request is really fast.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.