MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / handleGcpCredentialError

Function handleGcpCredentialError

src/services/api/withRetry.ts:684–690  ·  view source on GitHub ↗

* Clear GCP auth caches if appropriate. * @returns true if action was taken.

(error: unknown)

Source from the content-addressed store, hash-verified

682 * @returns true if action was taken.
683 */
684function handleGcpCredentialError(error: unknown): boolean {
685 if (isVertexAuthError(error)) {
686 clearGcpCredentialsCache()
687 return true
688 }
689 return false
690}
691
692function shouldRetry(error: APIError): boolean {
693 // Never retry mock errors - they're from /mock-limits command for testing

Callers 1

withRetryFunction · 0.85

Calls 2

isVertexAuthErrorFunction · 0.85
clearGcpCredentialsCacheFunction · 0.85

Tested by

no test coverage detected