MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / isApiKeyHelperFromProjectOrLocalSettings

Function isApiKeyHelperFromProjectOrLocalSettings

src/utils/auth.ts:416–428  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

414 * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
415 */
416function isApiKeyHelperFromProjectOrLocalSettings(): boolean {
417 const apiKeyHelper = getConfiguredApiKeyHelper()
418 if (!apiKeyHelper) {
419 return false
420 }
421
422 const projectSettings = getSettingsForSource('projectSettings')
423 const localSettings = getSettingsForSource('localSettings')
424 return (
425 projectSettings?.apiKeyHelper === apiKeyHelper ||
426 localSettings?.apiKeyHelper === apiKeyHelper
427 )
428}
429
430/**
431 * Get the configured awsAuthRefresh from settings

Callers 2

_executeApiKeyHelperFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected