MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isApiKeyHelperFromProjectOrLocalSettings

Function isApiKeyHelperFromProjectOrLocalSettings

src/utils/auth.ts:367–379  ·  view source on GitHub ↗

* Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)

()

Source from the content-addressed store, hash-verified

365 * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
366 */
367function isApiKeyHelperFromProjectOrLocalSettings(): boolean {
368 const apiKeyHelper = getConfiguredApiKeyHelper()
369 if (!apiKeyHelper) {
370 return false
371 }
372
373 const projectSettings = getSettingsForSource('projectSettings')
374 const localSettings = getSettingsForSource('localSettings')
375 return (
376 projectSettings?.apiKeyHelper === apiKeyHelper ||
377 localSettings?.apiKeyHelper === apiKeyHelper
378 )
379}
380
381/**
382 * Get the configured awsAuthRefresh from settings

Callers 2

_executeApiKeyHelperFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected