Skip to content

Commit e82b6e6

Browse files
committed
Adding an if condition
1 parent a58843b commit e82b6e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
491491
}
492492

493493
// Clear Firebase token for Regional Auth Instance when signOut is called
494-
await this._updateFirebaseToken(null);
494+
if (this.tenantConfig) {
495+
await this._updateFirebaseToken(null);
496+
}
495497
// Prevent callbacks from being called again in _updateCurrentUser, as
496498
// they were already called in the first line.
497499
return this._updateCurrentUser(null, /* skipBeforeStateCallbacks */ true);

0 commit comments

Comments
 (0)