Skip to content

Handle expired Firebase ID tokens for long sessions on application #29

@navyaa31

Description

@navyaa31

After a user remains logged into the website for several hours, API requests begin to fail with the following error:

"Token verification failed: FirebaseAuthError: Firebase ID token has expired. Get a fresh ID token from your client app and try again (auth/id-token-expired). See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token."

As a result, if the user is logged on for an extended period of time, rauthenticated equests start failing even though the user appears tpo remain logged in.

Task:

  • Ensure that the Firebase ID token is refreshed automatically before/when they expire to prevent request failures

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions