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