misc: agent improvements

This commit is contained in:
Sheen Capadngan
2025-06-12 01:25:47 +08:00
parent 62308fb0a3
commit 0c21c19c95
2 changed files with 59 additions and 21 deletions
@@ -122,9 +122,8 @@ export const identityUaServiceFactory = ({
}
: {
accessTokenTTL: identityUa.accessTokenPeriod,
// Setting Max TTL to 2 × period ensures that clients can always renew their token
// at least once, and matches client logic that checks if renewing would exceed Max TTL.
accessTokenMaxTTL: 2 * identityUa.accessTokenPeriod
// We set a large max ttl for periodic tokens to ensure that clients (even outdated ones) can always renew their token
accessTokenMaxTTL: 1000000000
};
const identityAccessToken = await identityUaDAL.transaction(async (tx) => {