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

Function isCustomApiKeyApproved

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

Source from the content-addressed store, hash-verified

1234}
1235
1236export function isCustomApiKeyApproved(apiKey: string): boolean {
1237 const config = getGlobalConfig()
1238 const normalizedKey = normalizeApiKeyForConfig(apiKey)
1239 return (
1240 config.customApiKeyResponses?.approved?.includes(normalizedKey) ?? false
1241 )
1242}
1243
1244export async function removeApiKey(): Promise<void> {
1245 await maybeRemoveApiKeyFromMacOSKeychain()

Callers

nothing calls this directly

Calls 2

normalizeApiKeyForConfigFunction · 0.85
getGlobalConfigFunction · 0.70

Tested by

no test coverage detected