MCPcopy Create free account
hub / github.com/Noumena-Network/code / isGcpAuthRefreshFromProjectSettings

Function isGcpAuthRefreshFromProjectSettings

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

Source from the content-addressed store, hash-verified

896 * Check if the configured gcpAuthRefresh comes from project settings
897 */
898export function isGcpAuthRefreshFromProjectSettings(): boolean {
899 const gcpAuthRefresh = getConfiguredGcpAuthRefresh()
900 if (!gcpAuthRefresh) {
901 return false
902 }
903
904 const projectSettings = getSettingsForSource('projectSettings')
905 const localSettings = getSettingsForSource('localSettings')
906 return (
907 projectSettings?.gcpAuthRefresh === gcpAuthRefresh ||
908 localSettings?.gcpAuthRefresh === gcpAuthRefresh
909 )
910}
911
912/** Short timeout for the GCP credentials probe. Without this, when no local
913 * 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