-
Notifications
You must be signed in to change notification settings - Fork 994
Description
[REQUIRED] Describe your environment
- Operating System version: Windows 10
- Browser version: Chrome && Firefox
- Firebase SDK version: >=7.10.0
- Firebase Product: Auth
[REQUIRED] Describe the problem
Calls to onAuthStateChanged and onIdTokenChanged send off a flurry of requests to securetoken.googleapis.com/v1/token until it responds with QUOTA_EXCEEDED. This only happens when the user is authenticated.
Steps to reproduce:
This error does not occur on Linux or macOS. I was not able to replicate it in a windows VM on Linux. It's only on windows in both firefox and chrome. However, I've only had success replicating with 2 windows machines and failed to replicate on another windows laptop.
- Only windows (maybe?)
- go to the stackblitz link
- authenticate with email (random email + password should work)
- uncomment line 42
- refresh the app stackblitz preview window
- check network tab, there should be 100's of requests
https://stackblitz.com/edit/firebase-issue-sandbox-vzdnt7
This is the strangest bug that I've run across and it took quite a bit to isolate the exact sequence of events that was causing it.
My initial thoughts are that calls to the firestore document snapshot are causing the onAuthStateChanged observer to trigger.
edit: I just did some more digging and this bug does not happen in 7.9.3 but does in 7.10.0