MCPcopy Create free account
hub / github.com/Noumena-Network/code / isApiKeyHelperFromProjectOrLocalSettings

Function isApiKeyHelperFromProjectOrLocalSettings

src/utils/auth.ts:440–452  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

438 * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
439 */
440function isApiKeyHelperFromProjectOrLocalSettings(): boolean {
441 const apiKeyHelper = getConfiguredApiKeyHelper()
442 if (!apiKeyHelper) {
443 return false
444 }
445
446 const projectSettings = getSettingsForSource('projectSettings')
447 const localSettings = getSettingsForSource('localSettings')
448 return (
449 projectSettings?.apiKeyHelper === apiKeyHelper ||
450 localSettings?.apiKeyHelper === apiKeyHelper
451 )
452}
453
454/**
455 * Get the configured awsAuthRefresh from settings

Callers 2

_executeApiKeyHelperFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected