Skip to content

[firebase_auth_web] Uncaught TypeError after showing INVALID_LOGIN_CREDENTIALS error (web_utils.dart getFirebaseAuthException) #18680

Description

@birchdigital

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

  1. On Flutter Web, call FirebaseAuth.instance.signInWithEmailAndPassword with a valid email and an incorrect password.
  2. The correct "wrong password" error dialog displays.
  3. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.platform: webIssues / PRs which are specifically for web.plugin: authtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions