(apiKey: string)
| 89 | * @returns true if the key uses the legacy format (sim_ prefix) |
| 90 | */ |
| 91 | export function isLegacyApiKeyFormat(apiKey: string): boolean { |
| 92 | return apiKey.startsWith('sim_') && !apiKey.startsWith('sk-sim-') |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Deterministically hashes a plain-text API key for indexed lookup. The hash |
no outgoing calls
no test coverage detected