removed condition (iat is guaranteed to be there)

This commit is contained in:
Miodec 2022-06-30 00:12:23 +02:00
parent 2aa251fc46
commit 4b423a5484

View file

@ -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();