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