3

I am attempting to use the recently released firebase emulator suite. specifically the authentication emulator.

I have the emulator installed and have created an test user in the auth emulator. as follows: enter image description here

Within my code I have:

if (firebase.apps.length === 0) {
  console.log("setup.js: initializing firebase....")
  firebase.initializeApp(firebaseConfig);
  firebase.auth().useEmulator('http://localhost:9099/');
} else {
  firebase.app(); // if already initialized, use that one
}

to utilized the emulator for authentication. alas I get the following network error:

enter image description here

Has anyone had success utilizing the firebase emulator suite with react native?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Garry Osborne
  • 87
  • 2
  • 4
  • 11

0 Answers0