Skip to content

Commit

Permalink
Fix for emulator
Browse files Browse the repository at this point in the history
According to the issue the format of  USE_EMULATOR have changed. 
angular/angularfire#2929 (comment)

This seems to have broken FirebaseUI-Angular in that it can no longer connect to the emulator. This change fixes the issue. However it is not backwards compatible which I don't know if it is a requirement.
  • Loading branch information
Mikael-Eliasson authored and RaphaelJenni committed Feb 25, 2022
1 parent a8b9707 commit 3ab00af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class FirebaseuiAngularLibraryService {
if (!(<any>window).firebaseUiInstance) {
const auth: _firebase.auth.Auth = app.auth();
if (useEmulator) {
auth.useEmulator(`http://${useEmulator.join(':')}`);
auth.useEmulator(useEmulator[0]);
}
(<any>window).firebaseUiInstance = new firebaseui.auth.AuthUI(auth);
}
Expand Down

0 comments on commit 3ab00af

Please sign in to comment.