mapError
inline fun <T : Any, E : Any, F : Any> ClerkResult<T, E>.mapError(transform: (error: E) -> F): ClerkResult<T, F>
Returns a ClerkResult.Failure whose error is transform applied to the original error, keeping the throwable, status code, error type and tags, or returns the original ClerkResult.Success unchanged. transform is not called when the failure carries no error.