* Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
()
| 438 | * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings) |
| 439 | */ |
| 440 | function isApiKeyHelperFromProjectOrLocalSettings(): boolean { |
| 441 | const apiKeyHelper = getConfiguredApiKeyHelper() |
| 442 | if (!apiKeyHelper) { |
| 443 | return false |
| 444 | } |
| 445 | |
| 446 | const projectSettings = getSettingsForSource('projectSettings') |
| 447 | const localSettings = getSettingsForSource('localSettings') |
| 448 | return ( |
| 449 | projectSettings?.apiKeyHelper === apiKeyHelper || |
| 450 | localSettings?.apiKeyHelper === apiKeyHelper |
| 451 | ) |
| 452 | } |
| 453 | |
| 454 | /** |
| 455 | * Get the configured awsAuthRefresh from settings |
no test coverage detected