We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af18b0b commit 3467483Copy full SHA for 3467483
packages/firebase_auth/firebase_auth_web/lib/firebase_auth_web.dart
@@ -437,7 +437,11 @@ class FirebaseAuthWeb extends FirebaseAuthPlatform {
437
// origin as a single string
438
delegate.useAuthEmulator('http://$host:$port');
439
} catch (e) {
440
- throw getFirebaseAuthException(e);
+ final String code = (e as auth_interop.AuthError).code;
441
+ // this catches Firebase Error from web that occurs after hot reloading & hot restarting
442
+ if (code != 'auth/emulator-config-failed') {
443
+ throw getFirebaseAuthException(e);
444
+ }
445
}
446
447
0 commit comments