()
| 872 | * Check if the configured gcpAuthRefresh comes from project settings |
| 873 | */ |
| 874 | export function isGcpAuthRefreshFromProjectSettings(): boolean { |
| 875 | const gcpAuthRefresh = getConfiguredGcpAuthRefresh() |
| 876 | if (!gcpAuthRefresh) { |
| 877 | return false |
| 878 | } |
| 879 | |
| 880 | const projectSettings = getSettingsForSource('projectSettings') |
| 881 | const localSettings = getSettingsForSource('localSettings') |
| 882 | return ( |
| 883 | projectSettings?.gcpAuthRefresh === gcpAuthRefresh || |
| 884 | localSettings?.gcpAuthRefresh === gcpAuthRefresh |
| 885 | ) |
| 886 | } |
| 887 | |
| 888 | /** Short timeout for the GCP credentials probe. Without this, when no local |
| 889 | * credential source exists (no ADC file, no env var), google-auth-library falls |
no test coverage detected