We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264baaa commit 93ff59eCopy full SHA for 93ff59e
lib/sdk/utilities/token-claims.ts
@@ -18,7 +18,7 @@ export const getClaimValue = async (
18
): Promise<unknown | null> => {
19
const token = (await sessionManager.getSessionItem(`${type}`)) as string;
20
const key = await validationDetails.keyProvider();
21
- const decodedToken = await jwtVerify(token, key);
+ const decodedToken = await jwtVerify(token, key, type === 'id_token' ? { currentDate: new Date(0) } : {});
22
const tokenPayload: Record<string, unknown> = decodedToken.payload;
23
return tokenPayload[claim] ?? null;
24
};
0 commit comments