You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set it up local emulator for firebase auth & firestore & storage & functions. But issue happen while authorizing
Steps and code to reproduce issue
I run initEmulator function in useEffect hook after login. It asks to credentials to production server
(https://identitytoolkit.googleapis.com/v1/accounts:lookup)
bunyaminmrcn
changed the title
Firebase client always tries to production server while using connectAuthEmulator
Firebase client sometimes tries to production server while using connectAuthEmulator
Sep 25, 2024
I'm not sure I am understanding correctly - you're running initEmulator after login? Isn't it too late? Doesn't the login operation itself call the backend, if no emulator has been initialized? Or do you mean you're running it after initializing auth, not login?
Regardless, useEffect has some weird timing and usually happens after initial page load. I don't think I'd feel safe putting anything in there that I want to run before the rest of my code. I'd probably start the emulator outside of any component. It's not a UI operation.
Operating System
Kali Linux
Environment (if applicable)
Chrome 129, Firefox 130
Firebase SDK Version
10.13.2
Firebase SDK Product(s)
Auth
Project Tooling
next project with [email protected]
Detailed Problem Description
I set it up local emulator for firebase auth & firestore & storage & functions. But issue happen while authorizing
Steps and code to reproduce issue
I run
initEmulator
function in useEffect hook after login. It asks to credentials to production server(
https://identitytoolkit.googleapis.com/v1/accounts:lookup
)The text was updated successfully, but these errors were encountered: