Zod Async Refine always returning false #27331
-
Hello, I am trying to validate a form with an async request to a server route that works fine when tested on its own, however, in the zod validation always returns false. I am trying to prevent user from attempting to register with an email that has already been taken, and so validating inside a nuxtui form by calling this async server route. testing the server route works just fine and return expected true or false
Please can someone take a look and show me what I am doing wrong? have spent a day on this already and not making any headway. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you're using refine, make sure you're using |
Beta Was this translation helpful? Give feedback.
If you're using refine, make sure you're using
schema.parseAsync
.