fix(kilo-sessions): cap token validity cache to 15 minutes
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user