Skip to content

firebase_auth onAuthStateChanged not updated on linkWithCredential #2690

Closed
@erf

Description

@erf

Describe the bug
I'm linking an Anonymous firebaseUser to a Phone provider using firebaseUser.linkWithCredential but onAuthStateChanged is not triggered, even if i call firebaseUser.reload().

To Reproduce
Steps to reproduce the behavior:

  1. Sign in with an anonymous user
  2. Link to a phone provider using linkWithCredential

Expected behavior
I would expect Firebase.instance.onAuthStateChanged to be triggered with a new event, especially after calling firebaseUser.reload.

Additional context

Flutter doctor
Run flutter doctor and paste the output below:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.40.0)
[✓] Connected device (1 available)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions