MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / isGcpAuthRefreshFromProjectSettings

Function isGcpAuthRefreshFromProjectSettings

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

Source from the content-addressed store, hash-verified

872 * Check if the configured gcpAuthRefresh comes from project settings
873 */
874export 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

Callers 2

runGcpAuthRefreshFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected