Description
On Flutter Web, signing in with an incorrect password correctly shows the app's own "wrong password" error dialog, but immediately afterward an uncaught TypeError is thrown from firebase_auth_web's web_utils.dart, during getFirebaseAuthException's conversion of the legacy INVALID_LOGIN_CREDENTIALS error shape returned by the JS SDK.
Our app-side Dart code path is clean: it receives the exception, shows the correct error dialog, and returns null. The uncaught TypeError originates entirely inside firebase_auth_web's JS-interop error conversion, not in our code.
Steps to reproduce
- On Flutter Web, call
FirebaseAuth.instance.signInWithEmailAndPassword with a valid email and an incorrect password.
- The correct "wrong password" error dialog displays.
- Immediately afterward, an uncaught
TypeError is thrown in the browser console, originating from web_utils.dart's getFirebaseAuthException.
Expected behavior
No uncaught exception after the SDK returns the legacy INVALID_LOGIN_CREDENTIALS shape.
Versions
- firebase_auth_web: 6.2.7 (newest at time of filing)
- firebase_core_web: 3.11.0 (newest at time of filing)
- Flutter: 3.47.2
Confirmed still reproducing on the newest releases as of 2026-09-08 (the 3.11.0 core_web fix was scoped to FirebaseCoreWeb.app(), unrelated to this path).
Impact
Cosmetic in our testing (no functional breakage), but it's an uncaught exception that pollutes crash/error monitoring.
Description
On Flutter Web, signing in with an incorrect password correctly shows the app's own "wrong password" error dialog, but immediately afterward an uncaught
TypeErroris thrown fromfirebase_auth_web'sweb_utils.dart, duringgetFirebaseAuthException's conversion of the legacyINVALID_LOGIN_CREDENTIALSerror shape returned by the JS SDK.Our app-side Dart code path is clean: it receives the exception, shows the correct error dialog, and returns
null. The uncaught TypeError originates entirely insidefirebase_auth_web's JS-interop error conversion, not in our code.Steps to reproduce
FirebaseAuth.instance.signInWithEmailAndPasswordwith a valid email and an incorrect password.TypeErroris thrown in the browser console, originating fromweb_utils.dart'sgetFirebaseAuthException.Expected behavior
No uncaught exception after the SDK returns the legacy
INVALID_LOGIN_CREDENTIALSshape.Versions
Confirmed still reproducing on the newest releases as of 2026-09-08 (the 3.11.0 core_web fix was scoped to
FirebaseCoreWeb.app(), unrelated to this path).Impact
Cosmetic in our testing (no functional breakage), but it's an uncaught exception that pollutes crash/error monitoring.