Share zod schema with client and server
For a form I validate the input on the server for the correct query.
For the frontend I want to reuse the same zod schema to validate the user input.
I have not found any documentation about whether or not it's a security concern or if it is even possible.
Does anyone have experience with this?
For the frontend I want to reuse the same zod schema to validate the user input.
I have not found any documentation about whether or not it's a security concern or if it is even possible.
Does anyone have experience with this?