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 36db592 commit 2d88a2dCopy full SHA for 2d88a2d
src/api/functions/entraId.ts
@@ -108,7 +108,8 @@ export async function getEntraIdToken({
108
redisClient: clients.redisClient,
109
key: cacheKey,
110
data: JSON.stringify({ token: result.accessToken }),
111
- expiresIn: result.expiresOn.getTime() - new Date().getTime() - 3600,
+ expiresIn:
112
+ (result.expiresOn.getTime() - new Date().getTime()) / 1000 - 120, // get new token 2 min before expiry
113
encryptionSecret,
114
});
115
}
0 commit comments