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