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

Function isAwsAuthRefreshFromProjectSettings

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

Source from the content-addressed store, hash-verified

463 * Check if the configured awsAuthRefresh comes from project settings
464 */
465export function isAwsAuthRefreshFromProjectSettings(): boolean {
466 const awsAuthRefresh = getConfiguredAwsAuthRefresh()
467 if (!awsAuthRefresh) {
468 return false
469 }
470
471 const projectSettings = getSettingsForSource('projectSettings')
472 const localSettings = getSettingsForSource('localSettings')
473 return (
474 projectSettings?.awsAuthRefresh === awsAuthRefresh ||
475 localSettings?.awsAuthRefresh === awsAuthRefresh
476 )
477}
478
479/**
480 * Get the configured awsCredentialExport from settings

Callers 2

runAwsAuthRefreshFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected