Set token expiration in firebase_auth #9558
Unanswered
Tom3652
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to grant access to my user according to some specific things locally so i am using the
user.getIdTokenResult
to get the customclaims
that i have set from the Admin SDK in my Cloud Function.My app works in airplane mode, but if i force the refresh token such as :
user.getIdTokenResult(true)
, the user is logged out from my app and he can't use it in airplane mode because the method clears out the user.I have never seen this behavior with the "automatic refresh" (not forcing it by passing
true
), so the user stays connected.I need to get the latest value of the custom claims each time a user open the application without having to pass
true
to force the refresh manually and log the user out.I think that being able to set a custom token expiration would help fixing the issue.
Beta Was this translation helpful? Give feedback.
All reactions