79717848

Date: 2025-07-28 20:29:48
Score: 1
Natty:
Report link

The TOKEN_EXPIRED error after a day suggests that the Firebase refresh token, which is stored in localStorage on the web via browserLocalPersistence, is being lost or invalidated.

Your firebase-config.ts looks correct for setting persistence so the most probable cause is your browser's settings or an extension is clearing localStorage or site data after a period.

Start by checking your browser's privacy settings and extensions. If you can replicate the issue consistently across different browsers (or after confirming localStorage is not being cleared), then you'd need to dig deeper into the Firebase SDK's interaction with your specific environment.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thomas W