mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 03:20:46 +08:00
removed condition (iat is guaranteed to be there)
This commit is contained in:
parent
2aa251fc46
commit
4b423a5484
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ async function authenticateWithBearerToken(
|
|||
try {
|
||||
const decodedToken = await verifyIdToken(token);
|
||||
|
||||
if (options.requireFreshToken === true && decodedToken.iat) {
|
||||
if (options.requireFreshToken === true) {
|
||||
const now = Date.now();
|
||||
const tokenIssuedAt = new Date(decodedToken.iat * 1000).getTime();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue