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

Ui doesn't connect to the auth emulator #118

Closed
jtonneyck opened this issue Nov 13, 2020 · 7 comments
Closed

Ui doesn't connect to the auth emulator #118

jtonneyck opened this issue Nov 13, 2020 · 7 comments

Comments

@jtonneyck
Copy link

I'm running a create react app with the firestore, functions, database and authentication emulators enabled.

When I try to signup a user, it connects to the live authentication service. The other emulators do work and I also do get the Running in emulator mode. Do not use with production credentials. message. If I try non interactive testing it does connect to the emulator.

This seems to be a bug or undescribed behaviour although I'm relatively new to Firebase.

@josueetcom
Copy link

I'm also experiencing this issue. From what the auth emulator docs suggest, it seems like it should be as simple as:

// initialize app
firebase.auth().useEmulator('http://localhost:9099/');

and the API key + auth domain shouldn't be required?

@josueetcom
Copy link

It seems like the issue might be in the underlying Firebase Web UI library as there's a similar issue:
firebase/firebaseui-web#778

@interactive-web-dev
Copy link

This package's only dependency firebaseui has fixed the underlying issue firebase/firebaseui-web#778 as part of the latest release v4.7.2+. Does this package require any development to enable local auth emulation? Or is it just a case of updating the dependency?

@interactive-web-dev
Copy link

interactive-web-dev commented Feb 4, 2021

I made a local patch, and it seems to be working! I haven't done any robust testing, so don't just take my word for it. The local emulator is a real game changer :D.

For anyone just looking to get the feature up and running quickly:

Update and save the firebaseui dependency inside your local installation of the react-firebaseui package.
cd <package_path> && npx i firebaseui@latest --save

Optionally, you can keep a record of the temporary patch.
npx patch-package react-firebaseui.

@alexmcmanus
Copy link

If you are using Yarn, add this to package.json:

  "resolutions": {
    "react-firebaseui/firebaseui": "^4.7.3"
  },

Then run yarn install again.

@AskYous
Copy link

AskYous commented Mar 2, 2021

Any updates to this issue?

@jhuleatt
Copy link
Contributor

This has been fixed in react-firebaseui@5.0.1

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

6 participants