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