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

Function isApiKeyHelperFromProjectOrLocalSettings

src/utils/auth.ts:366–378  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 2

_executeApiKeyHelperFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected