* Check if an error is an authentication error (401, 403)
(error: unknown)
| 51 | * Check if an error is an authentication error (401, 403) |
| 52 | */ |
| 53 | function isAuthenticationError(error: unknown): boolean { |
| 54 | const statusCode = getErrorStatusCode(error) |
| 55 | return statusCode === 401 || statusCode === 403 |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Validates an API key by calling the backend |
no test coverage detected