( error: any, )
| 104 | } |
| 105 | |
| 106 | export function isAuthenticationError( |
| 107 | error: any, |
| 108 | ): error is AuthenticationError { |
| 109 | return ( |
| 110 | error instanceof AuthenticationError || error.errorType === "auth_error" |
| 111 | ); |
| 112 | } |
| 113 | |
| 114 | export function isValidationError(error: any): error is ValidationError { |
| 115 | return ( |