* Clear AWS auth caches if appropriate. * @returns true if action was taken.
(error: unknown)
| 691 | * @returns true if action was taken. |
| 692 | */ |
| 693 | function handleAwsCredentialError(error: unknown): boolean { |
| 694 | if (isBedrockAuthError(error)) { |
| 695 | clearCurrentAwsCredentialsCache() |
| 696 | return true |
| 697 | } |
| 698 | return false |
| 699 | } |
| 700 | |
| 701 | // google-auth-library throws plain Error (no typed name like AWS's |
| 702 | // CredentialsProviderError). Match common SDK-level credential-failure messages. |
no test coverage detected