[firebase_auth] - Token is not refreshed after expired #11026
Unanswered
borabaloglu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a Flutter app that uses Firebase Auth. The issue that I am facing is:
When I am using the application it is fine. The token is refreshed and never expires. However, when I go to the home screen on my phone. Lock the phone or use other applications. After 1 hour (so the token expired), I open the app again. It calls
getIdToken(true)
but returning token is not a refreshed token. It still has an expired date. So when my backend callsvalidateIdToken
it returns an unauthorized exception. How can I fix this issue?I share the code where I generate token before each request :
Beta Was this translation helpful? Give feedback.
All reactions