You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This report is based on examining the code in GitHub and not an actual direct usage. We noticed expired tokens being sent to our backend and investigated the code and found this.
Describe the problem
The documentation says that firebase ID tokens should be refreshed if they would expires within 5 minutes.
Is this intended or is it missing a 0 accidentally?
Steps and code to reproduce issue
We don't have a direct reproduction but notice expired tokens being sent to our backend (no request takes more than 5 minutes to process) and examined the code to see why it may be.
The text was updated successfully, but these errors were encountered:
Operating System
Any
Browser Version
Any
Firebase SDK Version
92e2279
Firebase SDK Product:
Auth
Describe your project's tooling
This report is based on examining the code in GitHub and not an actual direct usage. We noticed expired tokens being sent to our backend and investigated the code and found this.
Describe the problem
The documentation says that firebase ID tokens should be refreshed if they would expires within 5 minutes.
https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/core/user/id_token_result.ts#L31
But looking at the code that actually fetches, it appears to use a buffer that is 30s
https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth/src/core/user/token_manager.ts#L49
Is this intended or is it missing a
0
accidentally?Steps and code to reproduce issue
We don't have a direct reproduction but notice expired tokens being sent to our backend (no request takes more than 5 minutes to process) and examined the code to see why it may be.
The text was updated successfully, but these errors were encountered: