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

Function isAwsCredentialExportFromProjectSettings

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

Source from the content-addressed store, hash-verified

488 * Check if the configured awsCredentialExport comes from project settings
489 */
490export function isAwsCredentialExportFromProjectSettings(): boolean {
491 const awsCredentialExport = getConfiguredAwsCredentialExport()
492 if (!awsCredentialExport) {
493 return false
494 }
495
496 const projectSettings = getSettingsForSource('projectSettings')
497 const localSettings = getSettingsForSource('localSettings')
498 return (
499 projectSettings?.awsCredentialExport === awsCredentialExport ||
500 localSettings?.awsCredentialExport === awsCredentialExport
501 )
502}
503
504/**
505 * Calculate TTL in milliseconds for the API key helper cache

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected