diff --git a/lib/sdk/utilities/token-claims.ts b/lib/sdk/utilities/token-claims.ts index 964ca59..e003300 100644 --- a/lib/sdk/utilities/token-claims.ts +++ b/lib/sdk/utilities/token-claims.ts @@ -18,7 +18,7 @@ export const getClaimValue = async ( ): Promise => { const token = (await sessionManager.getSessionItem(`${type}`)) as string; const key = await validationDetails.keyProvider(); - const decodedToken = await jwtVerify(token, key); + const decodedToken = await jwtVerify(token, key, type === 'id_token' ? { currentDate: new Date(0) } : {}); const tokenPayload: Record = decodedToken.payload; return tokenPayload[claim] ?? null; };