MCPcopy
hub / github.com/codeaashu/claude-code / hasAnthropicApiKeyAuth

Function hasAnthropicApiKeyAuth

src/utils/auth.ts:219–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219export function hasAnthropicApiKeyAuth(): boolean {
220 const { key, source } = getAnthropicApiKeyWithSource({
221 skipRetrievingKeyFromApiKeyHelper: true,
222 })
223 return key !== null && source !== 'none'
224}
225
226export function getAnthropicApiKeyWithSource(
227 opts: { skipRetrievingKeyFromApiKeyHelper?: boolean } = {},

Callers 1

index.tsFile · 0.85

Calls 1

Tested by

no test coverage detected