Skip to content

Commit 9506f85

Browse files
authoredFeb 5, 2020
fix(auth): use onAuthStateChanged for authState (#2308)
1 parent 0ae30d8 commit 9506f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/auth/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AngularFireAuth {
4848
});
4949

5050
this.authState = new Observable<User | null>(subscriber => {
51-
return zone.runOutsideAngular(() => this.auth.onIdTokenChanged(subscriber));
51+
return zone.runOutsideAngular(() => this.auth.onAuthStateChanged(subscriber));
5252
}).pipe(keepUnstableUntilFirst);;
5353

5454
this.user = new Observable<User | null>(subscriber => {

0 commit comments

Comments
 (0)