MCPcopy Index your code
hub / github.com/simstudioai/sim / rememberToken

Function rememberToken

apps/sim/app/api/tools/sap_concur/shared.ts:178–186  ·  view source on GitHub ↗
(key: string, token: CachedToken)

Source from the content-addressed store, hash-verified

176}
177
178function rememberToken(key: string, token: CachedToken): void {
179 if (TOKEN_CACHE.has(key)) TOKEN_CACHE.delete(key)
180 TOKEN_CACHE.set(key, token)
181 while (TOKEN_CACHE.size > TOKEN_CACHE_MAX_ENTRIES) {
182 const oldestKey = TOKEN_CACHE.keys().next().value
183 if (oldestKey === undefined) break
184 TOKEN_CACHE.delete(oldestKey)
185 }
186}
187
188function normalizeGeolocation(raw: string | undefined, fallback: string): string {
189 if (!raw) return `https://${fallback}`

Callers 1

Calls 2

deleteMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected