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

Function rememberToken

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

Source from the content-addressed store, hash-verified

105}
106
107function rememberToken(key: string, token: CachedToken): void {
108 if (TOKEN_CACHE.has(key)) TOKEN_CACHE.delete(key)
109 TOKEN_CACHE.set(key, token)
110 while (TOKEN_CACHE.size > TOKEN_CACHE_MAX_ENTRIES) {
111 const oldestKey = TOKEN_CACHE.keys().next().value
112 if (oldestKey === undefined) break
113 TOKEN_CACHE.delete(oldestKey)
114 }
115}
116
117export async function fetchZoomInfoAccessToken(
118 auth: ZoomInfoAuth,

Callers 1

fetchZoomInfoAccessTokenFunction · 0.70

Calls 2

deleteMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected