(apiKey: string)
| 1160 | } |
| 1161 | |
| 1162 | export function isCustomApiKeyApproved(apiKey: string): boolean { |
| 1163 | const config = getGlobalConfig() |
| 1164 | const normalizedKey = normalizeApiKeyForConfig(apiKey) |
| 1165 | return ( |
| 1166 | config.customApiKeyResponses?.approved?.includes(normalizedKey) ?? false |
| 1167 | ) |
| 1168 | } |
| 1169 | |
| 1170 | export async function removeApiKey(): Promise<void> { |
| 1171 | await maybeRemoveApiKeyFromMacOSKeychain() |
nothing calls this directly
no test coverage detected