MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isAwsCredentialExportFromProjectSettings

Function isAwsCredentialExportFromProjectSettings

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

Source from the content-addressed store, hash-verified

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

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected