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

Function tokenCacheKey

apps/sim/app/api/tools/zoominfo/shared.ts:102–105  ·  view source on GitHub ↗
(auth: ZoomInfoAuth)

Source from the content-addressed store, hash-verified

100const TOKEN_SAFETY_WINDOW_MS = 60_000
101
102function tokenCacheKey(auth: ZoomInfoAuth): string {
103 const secretHash = createHash('sha256').update(auth.clientSecret).digest('hex').slice(0, 16)
104 return `${auth.clientId}::${secretHash}`
105}
106
107function rememberToken(key: string, token: CachedToken): void {
108 if (TOKEN_CACHE.has(key)) TOKEN_CACHE.delete(key)

Callers 1

fetchZoomInfoAccessTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected