* Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
()
| 414 | * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings) |
| 415 | */ |
| 416 | function isApiKeyHelperFromProjectOrLocalSettings(): boolean { |
| 417 | const apiKeyHelper = getConfiguredApiKeyHelper() |
| 418 | if (!apiKeyHelper) { |
| 419 | return false |
| 420 | } |
| 421 | |
| 422 | const projectSettings = getSettingsForSource('projectSettings') |
| 423 | const localSettings = getSettingsForSource('localSettings') |
| 424 | return ( |
| 425 | projectSettings?.apiKeyHelper === apiKeyHelper || |
| 426 | localSettings?.apiKeyHelper === apiKeyHelper |
| 427 | ) |
| 428 | } |
| 429 | |
| 430 | /** |
| 431 | * Get the configured awsAuthRefresh from settings |
no test coverage detected