MCPcopy
hub / github.com/codeaashu/claude-code / isGcpAuthRefreshFromProjectSettings

Function isGcpAuthRefreshFromProjectSettings

src/utils/auth.ts:824–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822 * Check if the configured gcpAuthRefresh comes from project settings
823 */
824export 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

Callers 2

runGcpAuthRefreshFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected