Skip to content

Commit 5835f4f

Browse files
committed
fix(angular): updated angular example app to new firebase config types
1 parent 3bca15d commit 5835f4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/angular/src/lib/provider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ import {
3333
createPhoneAuthVerifyFormSchema,
3434
createSignInAuthFormSchema,
3535
createSignUpAuthFormSchema,
36-
FirebaseUIConfiguration,
36+
FirebaseUIStore,
3737
type FirebaseUI as FirebaseUIType,
3838
getTranslation,
3939
getBehavior,
4040
type CountryData,
4141
} from "@firebase-ui/core";
4242

43-
const FIREBASE_UI_STORE = new InjectionToken<FirebaseUIType>("firebaseui.store");
43+
const FIREBASE_UI_STORE = new InjectionToken<FirebaseUIStore>("firebaseui.store");
4444
const FIREBASE_UI_POLICIES = new InjectionToken<PolicyConfig>("firebaseui.policies");
4545

4646
type PolicyConfig = {
4747
termsOfServiceUrl: string;
4848
privacyPolicyUrl: string;
4949
};
5050

51-
export function provideFirebaseUI(uiFactory: (apps: FirebaseApps) => FirebaseUIType): EnvironmentProviders {
51+
export function provideFirebaseUI(uiFactory: (apps: FirebaseApps) => FirebaseUIStore): EnvironmentProviders {
5252
const providers: Provider[] = [
5353
// TODO: This should depend on the FirebaseAuth provider via deps,
5454
// see https://github.com/angular/angularfire/blob/35e0a9859299010488852b1826e4083abe56528f/src/firestore/firestore.module.ts#L76
@@ -73,10 +73,10 @@ export function provideFirebaseUIPolicies(factory: () => PolicyConfig) {
7373
return makeEnvironmentProviders(providers);
7474
}
7575

76-
// Provides a signal with a subscription to the FirebaseUIConfiguration
76+
// Provides a signal with a subscription to the FirebaseUIStore
7777
export function injectUI() {
7878
const store = inject(FIREBASE_UI_STORE);
79-
const ui = signal<FirebaseUIConfiguration>(store.get());
79+
const ui = signal<FirebaseUIType>(store.get());
8080

8181
effect(() => {
8282
return store.subscribe(ui.set);

0 commit comments

Comments
 (0)