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

Function handleAwsCredentialError

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

644 * @returns true if action was taken.
645 */
646function handleAwsCredentialError(error: unknown): boolean {
647 if (isBedrockAuthError(error)) {
648 clearAwsCredentialsCache()
649 return true
650 }
651 return false
652}
653
654// google-auth-library throws plain Error (no typed name like AWS's
655// 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