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