Replies: 1 comment 1 reply
-
I have the exact same scenario, what did you end up doing? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how to return custom authentication/validation errors to users with
remix-auth
.If the user provides invalid credentials (i.e malformed email, too short of password), I want to return an error object. I'm using remix-validated-form and
zod
package for validation.The other way I thought was doing it in the
action
, however that feels not ideal (we'd already make a call to our DB with the unvalidated payload by this point).Beta Was this translation helpful? Give feedback.
All reactions