MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isCustomApiKeyApproved

Function isCustomApiKeyApproved

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

Source from the content-addressed store, hash-verified

1160}
1161
1162export 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
1170export async function removeApiKey(): Promise<void> {
1171 await maybeRemoveApiKeyFromMacOSKeychain()

Callers

nothing calls this directly

Calls 2

getGlobalConfigFunction · 0.85
normalizeApiKeyForConfigFunction · 0.85

Tested by

no test coverage detected