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