mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 14:54:20 +08:00
fixed backwards logic
This commit is contained in:
parent
e9503a24c2
commit
4f146ae5a8
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export async function verifyIdToken(idToken: string): Promise<DecodedIdToken> {
|
|||
if (cached) {
|
||||
const expirationDate = cached.exp * 1000 - TOKEN_CACHE_BUFFER;
|
||||
|
||||
if (expirationDate > Date.now()) {
|
||||
if (expirationDate < Date.now()) {
|
||||
recordTokenCacheAccess("hit_expired");
|
||||
tokenCache.delete(idToken);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue