fix: changed accessTokenMaxTTL in expireAt to accessTokenTTL

This commit is contained in:
=
2025-01-28 01:57:15 +05:30
parent 4ee9375a8d
commit 811dc8dd75
8 changed files with 16 additions and 16 deletions
@@ -100,10 +100,10 @@ export const identityAzureAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
Number(identityAccessToken.accessTokenMaxTTL) === 0
Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);