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