fix(kilo-sessions): cap token validity cache to 15 minutes

This commit is contained in:
Igor Šćekić
2026-02-02 15:08:59 +01:00
parent 6eb37d4305
commit 13001c4f10
@@ -37,7 +37,7 @@ export namespace KiloSessions {
tokenValidKey = newTokenValidKey
}
return withInFlightCache(tokenValidKey, Number.POSITIVE_INFINITY, async () => {
return withInFlightCache(tokenValidKey, 15 * 60_000, async () => {
const response = await fetch("https://app.kilo.ai/api/user", {
headers: {
Authorization: `Bearer ${token}`,