fix(kilo-sessions): update cache key only on token change

This commit is contained in:
Igor Šćekić
2026-02-02 15:06:04 +01:00
parent c5657260a3
commit 6d53540a58
@@ -33,9 +33,9 @@ export namespace KiloSessions {
if (newTokenValidKey !== tokenValidKey) {
clearInFlightCache(tokenValidKey)
}
tokenValidKey = tokenValidKeyTemplate + token
tokenValidKey = newTokenValidKey
}
return withInFlightCache(tokenValidKey, Number.POSITIVE_INFINITY, async () => {
const response = await fetch("https://app.kilo.ai/api/user", {