Currently, we're using zod for trpc input validation, at the same time, we're using custom logics for client side validation, the deviation between server & client causes maintenance and vulnerability issues. We should extract zod logic, and share it with client & server.
Currently, we're using zod for trpc input validation, at the same time, we're using custom logics for client side validation, the deviation between server & client causes maintenance and vulnerability issues. We should extract zod logic, and share it with client & server.