MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isGoogleAuthLibraryCredentialError

Function isGoogleAuthLibraryCredentialError

src/services/api/withRetry.ts:660–668  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

658// google-auth-library throws plain Error (no typed name like AWS's
659// CredentialsProviderError). Match common SDK-level credential-failure messages.
660function isGoogleAuthLibraryCredentialError(error: unknown): boolean {
661 if (!(error instanceof Error)) return false
662 const msg = error.message
663 return (
664 msg.includes('Could not load the default credentials') ||
665 msg.includes('Could not refresh access token') ||
666 msg.includes('invalid_grant')
667 )
668}
669
670function isVertexAuthError(error: unknown): boolean {
671 if (isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX)) {

Callers 1

isVertexAuthErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected