()
| 819 | * Check if the configured gcpAuthRefresh comes from project settings |
| 820 | */ |
| 821 | export function isGcpAuthRefreshFromProjectSettings(): boolean { |
| 822 | const gcpAuthRefresh = getConfiguredGcpAuthRefresh() |
| 823 | if (!gcpAuthRefresh) { |
| 824 | return false |
| 825 | } |
| 826 | |
| 827 | const projectSettings = getSettingsForSource('projectSettings') |
| 828 | const localSettings = getSettingsForSource('localSettings') |
| 829 | return ( |
| 830 | projectSettings?.gcpAuthRefresh === gcpAuthRefresh || |
| 831 | localSettings?.gcpAuthRefresh === gcpAuthRefresh |
| 832 | ) |
| 833 | } |
| 834 | |
| 835 | /** Short timeout for the GCP credentials probe. Without this, when no local |
| 836 | * credential source exists (no ADC file, no env var), google-auth-library falls |
no test coverage detected