Skip to content

Commit 124e186

Browse files
committed
fixed so that on the emulator, it does not check whether it's revoked unless the 'checkRevoked' flag is present
1 parent b63e1a8 commit 124e186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class BaseAuth {
6363
const isEmulator = useEmulator(env);
6464
const decodedIdToken = await this.idTokenVerifier.verifyJWT(idToken, isEmulator);
6565
// Whether to check if the token was revoked.
66-
if (checkRevoked || isEmulator) {
66+
if (checkRevoked) {
6767
return await this.verifyDecodedJWTNotRevokedOrDisabled(decodedIdToken, AuthClientErrorCode.ID_TOKEN_REVOKED, env);
6868
}
6969
return decodedIdToken;
@@ -137,7 +137,7 @@ export class BaseAuth {
137137
const isEmulator = useEmulator(env);
138138
const decodedIdToken = await this.sessionCookieVerifier.verifyJWT(sessionCookie, isEmulator);
139139
// Whether to check if the token was revoked.
140-
if (checkRevoked || isEmulator) {
140+
if (checkRevoked) {
141141
return await this.verifyDecodedJWTNotRevokedOrDisabled(
142142
decodedIdToken,
143143
AuthClientErrorCode.SESSION_COOKIE_REVOKED,

0 commit comments

Comments
 (0)