MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / isCustomApiKeyApproved

Function isCustomApiKeyApproved

src/utils/auth.ts:1212–1218  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

1210}
1211
1212export 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
1220export async function removeApiKey(): Promise<void> {
1221 await maybeRemoveApiKeyFromMacOSKeychain()

Callers

nothing calls this directly

Calls 2

getGlobalConfigFunction · 0.85
normalizeApiKeyForConfigFunction · 0.85

Tested by

no test coverage detected