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

Function isCustomApiKeyApproved

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

Source from the content-addressed store, hash-verified

1161}
1162
1163export function isCustomApiKeyApproved(apiKey: string): boolean {
1164 const config = getGlobalConfig()
1165 const normalizedKey = normalizeApiKeyForConfig(apiKey)
1166 return (
1167 config.customApiKeyResponses?.approved?.includes(normalizedKey) ?? false
1168 )
1169}
1170
1171export async function removeApiKey(): Promise<void> {
1172 await maybeRemoveApiKeyFromMacOSKeychain()

Callers

nothing calls this directly

Calls 2

getGlobalConfigFunction · 0.85
normalizeApiKeyForConfigFunction · 0.85

Tested by

no test coverage detected