verifyIdToken returns Firebase ID token has expired when IDLE, setAuthCookies not refreshing the token, works on page refresh #605
-
Hi there, Problem If I call setAuthCookies(req, res), I have the following error: If I refresh the page, the token is updated and everything works fine. Note : both |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
This shouldn't happen: we'll update the token when the Firebase JS SDK refreshes it (source). Have you confirmed this also happens on the demo app? If it doesn't, please double-check that you're using |
Beta Was this translation helpful? Give feedback.
-
Hi Kevin, Thank you for your fast reply! Regarding my issue, I guess I'll first try to upgrade to NB: With the demo app on
|
Beta Was this translation helpful? Give feedback.
-
Heythere, Hope everyone's good! Just wanted to check in on that issue with tokens expiring after an hour and not getting refreshed. Has it been resolved? Currently, our app's still grappling with this problem. Right now, we're rocking an older version, next-firebase-auth: 1.0.0-canary.16. A bit of an older version. But we're gearing up to make a big leap to 1.0.0-beta.0. I'm kinda wondering – did that fix (if it's out there) make its way into versions beyond 1.0.0-canary.16? Can I just get the latest version and call it a day? Would love to know 😃 |
Beta Was this translation helpful? Give feedback.
This shouldn't happen: we'll update the token when the Firebase JS SDK refreshes it (source).
Have you confirmed this also happens on the demo app? If it doesn't, please double-check that you're using
useAuthUser
as intended.