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