Skip to content

Commit 980c447

Browse files
cartantdavideast
authored andcommitted
fix(auth): Use the injected app
1 parent a332bc4 commit 980c447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auth/auth.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class AngularFireAuth {
1515
* Firebase Auth instance
1616
*/
1717
auth: firebase.auth.Auth;
18-
18+
1919
/**
2020
* Observable of authentication state
2121
*/
@@ -35,7 +35,7 @@ export class AngularFireAuth {
3535
*/
3636
export function FirebaseAuthStateObservable(app: FirebaseApp): Observable<firebase.User> {
3737
const authState = Observable.create((observer: Observer<firebase.User>) => {
38-
firebase.auth().onAuthStateChanged(
38+
app.auth().onAuthStateChanged(
3939
(user?: firebase.User) => observer.next(user),
4040
(error: firebase.auth.Error) => observer.error(error),
4141
() => observer.complete()

0 commit comments

Comments
 (0)