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

Function handleAwsCredentialError

src/services/api/withRetry.ts:650–656  ·  view source on GitHub ↗

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

(error: unknown)

Source from the content-addressed store, hash-verified

648 * @returns true if action was taken.
649 */
650function handleAwsCredentialError(error: unknown): boolean {
651 if (isBedrockAuthError(error)) {
652 clearAwsCredentialsCache()
653 return true
654 }
655 return false
656}
657
658// google-auth-library throws plain Error (no typed name like AWS's
659// CredentialsProviderError). Match common SDK-level credential-failure messages.

Callers 1

withRetryFunction · 0.85

Calls 2

isBedrockAuthErrorFunction · 0.85
clearAwsCredentialsCacheFunction · 0.85

Tested by

no test coverage detected