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

Function hasAnthropicApiKeyAuth

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

Source from the content-addressed store, hash-verified

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

Callers 1

index.tsFile · 0.85

Calls 1

Tested by

no test coverage detected