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