* Derive a short, irreversible, non-identifying cache-key discriminator from an API key.
(apiKey: string)
| 114 | * Derive a short, irreversible, non-identifying cache-key discriminator from an API key. |
| 115 | */ |
| 116 | function deriveApiKeyDiscriminator(apiKey: string): string { |
| 117 | return deriveCacheDigest(apiKey, API_KEY_DISCRIMINATOR_BYTES) |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Build a cache key that is unique per provider+server+key combination. |
no test coverage detected