()
| 896 | * Check if the configured gcpAuthRefresh comes from project settings |
| 897 | */ |
| 898 | export function isGcpAuthRefreshFromProjectSettings(): boolean { |
| 899 | const gcpAuthRefresh = getConfiguredGcpAuthRefresh() |
| 900 | if (!gcpAuthRefresh) { |
| 901 | return false |
| 902 | } |
| 903 | |
| 904 | const projectSettings = getSettingsForSource('projectSettings') |
| 905 | const localSettings = getSettingsForSource('localSettings') |
| 906 | return ( |
| 907 | projectSettings?.gcpAuthRefresh === gcpAuthRefresh || |
| 908 | localSettings?.gcpAuthRefresh === gcpAuthRefresh |
| 909 | ) |
| 910 | } |
| 911 | |
| 912 | /** Short timeout for the GCP credentials probe. Without this, when no local |
| 913 | * credential source exists (no ADC file, no env var), google-auth-library falls |
no test coverage detected