Skip to content

FR: onAuthStateChanged return UserCredential #1018

Open
@alexnu

Description

@alexnu

[REQUIRED] Describe your environment

  • Firebase SDK version: 5.2.0
  • Firebase Product: auth

[REQUIRED] Describe the problem

It would be really helpful if onAuthStateChanged also returned a UserCredential object together with AdditionalUserInfo. I currently use onAuthStateChanged to manage login events and it would be great if I could determine whether it's a new user or not and redirect him to the proper page.

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