diff --git a/src/App.tsx b/src/App.tsx index 91cea8d..5dd42eb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -84,8 +84,10 @@ export default function App() { useEffect(() => { if (app && import.meta.env.DEV) { const auth = getAuth(app); - console.log('connecting to auth emulator'); - connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true }); + if (!auth.emulatorConfig) { + console.log('connecting to auth emulator'); + connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true }); + } } }, [app]);