We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a332bc4 commit 980c447Copy full SHA for 980c447
src/auth/auth.ts
@@ -15,7 +15,7 @@ export class AngularFireAuth {
15
* Firebase Auth instance
16
*/
17
auth: firebase.auth.Auth;
18
-
+
19
/**
20
* Observable of authentication state
21
@@ -35,7 +35,7 @@ export class AngularFireAuth {
35
36
export function FirebaseAuthStateObservable(app: FirebaseApp): Observable<firebase.User> {
37
const authState = Observable.create((observer: Observer<firebase.User>) => {
38
- firebase.auth().onAuthStateChanged(
+ app.auth().onAuthStateChanged(
39
(user?: firebase.User) => observer.next(user),
40
(error: firebase.auth.Error) => observer.error(error),
41
() => observer.complete()
0 commit comments