* Clear AWS auth caches if appropriate. * @returns true if action was taken.
(error: unknown)
| 644 | * @returns true if action was taken. |
| 645 | */ |
| 646 | function 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. |
no test coverage detected