()
| 414 | * Check if the configured awsCredentialExport comes from project settings |
| 415 | */ |
| 416 | export 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 |
no test coverage detected