Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FirebaseUser.GetIdToken(false) is very slow even after the first call #6161

Unanswered
datvm asked this question in Q&A
Discussion options

I know it's supposed to be cached locally but calling FirebaseUser.GetIdToken(false) is still very slow even for 2nd or 3rd calls (and the returned token is the same). It takes seconds for the result for some reason. I thought our API server was slow but while debugging another issue, I found out this method is what holding it back. When I introduced our own local token cache, the speed significantly improved.

Is there some special logic with this method call that makes it so slow? Also is it safe to cache the token for 50 minutes (I assume it expires in 1 hour)?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /