(apiKey: string)
| 1210 | } |
| 1211 | |
| 1212 | export function isCustomApiKeyApproved(apiKey: string): boolean { |
| 1213 | const config = getGlobalConfig() |
| 1214 | const normalizedKey = normalizeApiKeyForConfig(apiKey) |
| 1215 | return ( |
| 1216 | config.customApiKeyResponses?.approved?.includes(normalizedKey) ?? false |
| 1217 | ) |
| 1218 | } |
| 1219 | |
| 1220 | export async function removeApiKey(): Promise<void> { |
| 1221 | await maybeRemoveApiKeyFromMacOSKeychain() |
nothing calls this directly
no test coverage detected