(apiKey: string)
| 80 | * @returns true if the key uses the new encrypted format (sk-sim- prefix) |
| 81 | */ |
| 82 | export function isEncryptedApiKeyFormat(apiKey: string): boolean { |
| 83 | return apiKey.startsWith('sk-sim-') |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Determines if an API key uses the legacy format based on prefix |
no outgoing calls
no test coverage detected