* Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings)
()
| 364 | * Check if the configured apiKeyHelper comes from project settings (projectSettings or localSettings) |
| 365 | */ |
| 366 | function isApiKeyHelperFromProjectOrLocalSettings(): boolean { |
| 367 | const apiKeyHelper = getConfiguredApiKeyHelper() |
| 368 | if (!apiKeyHelper) { |
| 369 | return false |
| 370 | } |
| 371 | |
| 372 | const projectSettings = getSettingsForSource('projectSettings') |
| 373 | const localSettings = getSettingsForSource('localSettings') |
| 374 | return ( |
| 375 | projectSettings?.apiKeyHelper === apiKeyHelper || |
| 376 | localSettings?.apiKeyHelper === apiKeyHelper |
| 377 | ) |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * Get the configured awsAuthRefresh from settings |
no test coverage detected