MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getCustomApiKeyStatus

Function getCustomApiKeyStatus

source code/utils/config.ts:1105–1116  ·  view source on GitHub ↗
(
  truncatedApiKey: string,
)

Source from the content-addressed store, hash-verified

1103}
1104
1105export function getCustomApiKeyStatus(
1106 truncatedApiKey: string,
1107): 'approved' | 'rejected' | 'new' {
1108 const config = getGlobalConfig()
1109 if (config.customApiKeyResponses?.approved?.includes(truncatedApiKey)) {
1110 return 'approved'
1111 }
1112 if (config.customApiKeyResponses?.rejected?.includes(truncatedApiKey)) {
1113 return 'rejected'
1114 }
1115 return 'new'
1116}
1117
1118function saveConfig<A extends object>(
1119 file: string,

Callers 2

showSetupScreensFunction · 0.85
OnboardingFunction · 0.85

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected