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

Function isGcpAuthRefreshFromProjectSettings

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

Source from the content-addressed store, hash-verified

819 * Check if the configured gcpAuthRefresh comes from project settings
820 */
821export function isGcpAuthRefreshFromProjectSettings(): boolean {
822 const gcpAuthRefresh = getConfiguredGcpAuthRefresh()
823 if (!gcpAuthRefresh) {
824 return false
825 }
826
827 const projectSettings = getSettingsForSource('projectSettings')
828 const localSettings = getSettingsForSource('localSettings')
829 return (
830 projectSettings?.gcpAuthRefresh === gcpAuthRefresh ||
831 localSettings?.gcpAuthRefresh === gcpAuthRefresh
832 )
833}
834
835/** Short timeout for the GCP credentials probe. Without this, when no local
836 * 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