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

Function isCustomApiKeyApproved

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

Source from the content-addressed store, hash-verified

1156}
1157
1158export 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
1166export async function removeApiKey(): Promise<void> {
1167 await maybeRemoveApiKeyFromMacOSKeychain()

Callers

nothing calls this directly

Calls 2

getGlobalConfigFunction · 0.85
normalizeApiKeyForConfigFunction · 0.85

Tested by

no test coverage detected