Skip to content

Commit 22c2621

Browse files
authored
fix onAuthStateChanged binding (#4945)
1 parent b49345d commit 22c2621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages-exp/auth-exp/src/core/auth/auth_impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
506506
const cb =
507507
typeof nextOrObserver === 'function'
508508
? nextOrObserver
509-
: nextOrObserver.next;
509+
: nextOrObserver.next.bind(nextOrObserver);
510510

511511
const promise = this._isInitialized
512512
? Promise.resolve()

0 commit comments

Comments
 (0)