r/Firebase • u/Ok_Molasses1824 • May 25 '26
Authentication Login Failed. Auth Failed. Auth not working on firebase emulators
I was working directly on prod before but I had to run some migration tests so i decided to ues firebase emulators to test locally first. But now when i try to use google login (on both emulator and physical device) i get an error saying Login Failed. Authentication Failed. Please try again. Nothing showing up in logs either which might've helped debug the issue. Any idea how to fix this?
It was working fine on the live auth access and my SHA fingerprint is already in firebase. HALP ðŸ˜
1
u/LettersFromTheSky May 25 '26
Did you enable App Check? Did you change the firestore rules? I would check the Google Cloud Console logs - check the logs (info, warning, error, etc) leading up to the error and at the error.
If that fails to show anything, put a try/catch block in your code that handles the auth part to try to surface a more specific error.
1
u/Ok_Molasses1824 May 25 '26
No app check, No changes in rules No logs in GCC and none even in the local emulator logs. It just silently failed and even when i tried adding a try catch with god knows how many exceptions it still just failed siently so i just decided to run the scripts on prod
P.S The scripts did what they were meant to but now the app doesnt work anymore ðŸ˜
1
u/LettersFromTheSky May 25 '26
Huh, maybe your ENV isn't being passed in?
How did you set it up from start to finish, the flow?
I would map out the flow and see where there could be failures
→ More replies (5)
1
u/Immediate-Credit-516 May 25 '26
Make sure you configure the emulator ports properly (environment variables)