Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: onAuthStateChanged return UserCredential #1018

Open
alexnu opened this issue Jul 18, 2018 · 0 comments
Open

FR: onAuthStateChanged return UserCredential #1018

alexnu opened this issue Jul 18, 2018 · 0 comments

Comments

@alexnu
Copy link

alexnu commented Jul 18, 2018

[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.

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

No branches or pull requests

4 participants