Skip to content

Commit a3878f3

Browse files
committed
Remove firebaseToken from persistence if tokenRefreshHandler is not set and token is expired
1 parent 9edb9ac commit a3878f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
266266
return firebaseAccessToken.token;
267267
}
268268

269+
// Resets the Firebase Access Token to null i.e. logs out the user.
270+
await this._updateFirebaseToken(null);
269271
if (firebaseAccessToken && this.tokenRefreshHandler) {
270272
try {
271273
// Awaits for the callback method to execute. The callback method

0 commit comments

Comments
 (0)