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

Function isAwsCredentialExportFromProjectSettings

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

Source from the content-addressed store, hash-verified

415 * Check if the configured awsCredentialExport comes from project settings
416 */
417export function isAwsCredentialExportFromProjectSettings(): boolean {
418 const awsCredentialExport = getConfiguredAwsCredentialExport()
419 if (!awsCredentialExport) {
420 return false
421 }
422
423 const projectSettings = getSettingsForSource('projectSettings')
424 const localSettings = getSettingsForSource('localSettings')
425 return (
426 projectSettings?.awsCredentialExport === awsCredentialExport ||
427 localSettings?.awsCredentialExport === awsCredentialExport
428 )
429}
430
431/**
432 * Calculate TTL in milliseconds for the API key helper cache

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected