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

Automatically signed out of Firebase on page refresh #2877

Closed
kartikwatwani opened this issue Dec 1, 2020 · 1 comment
Closed

Automatically signed out of Firebase on page refresh #2877

kartikwatwani opened this issue Dec 1, 2020 · 1 comment

Comments

@kartikwatwani
Copy link

Environment info

firebase-tools: 8.16.2

Platform: Ubuntu

Test case

I have created a Stackoverflow question and Github repository to demonstrate the issue.

Steps to reproduce

  1. Run command ng serve --open in one terminal instance.
  2. Run command firebase emulators: start in another terminal instance.
  3. Sign in using the phone number in the angular app and check the AuthStatus message on the page. Refresh the page and check the auth status message.

Expected behavior

While using firebase emulators with the angular application I shouldn't get automatically signed out on page refresh when using a phone number account.

Actual behavior

While serving the angular application with ng serve --open whenever the page refreshes, I am automatically signed out of firebase while testing with firebase emulators using a phone number firebase account.

@samtstern
Copy link
Contributor

@itsmeneartou sounds like you're running into this issue:
firebase/firebase-js-sdk#4110
https://stackoverflow.com/questions/65025005/angularfireauth-emulator-login-is-lost-on-page-reload

The solution (for now) is to initialize auth before the database. We're working on improving the JS SDK to make this better, but I am going to close this issue here since the bug is not in the CLI.

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

No branches or pull requests

2 participants