MCPcopy
hub / github.com/codeaashu/claude-code / handleGcpCredentialError

Function handleGcpCredentialError

src/services/api/withRetry.ts:688–694  ·  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

686 * @returns true if action was taken.
687 */
688function handleGcpCredentialError(error: unknown): boolean {
689 if (isVertexAuthError(error)) {
690 clearGcpCredentialsCache()
691 return true
692 }
693 return false
694}
695
696function shouldRetry(error: APIError): boolean {
697 // 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