Skip to content

feat: Add zod validation in user.js and admin.js #43

@Sincha05

Description

@Sincha05

##Currently, the /signup, /signin, and /google-signin routes do not validate the request body using a schema. This can lead to unexpected behavior or security issues due to malformed input.

Proposal

Integrate Zod to define and enforce schemas for the following routes:

  • /signup → validate email, password, firstName, lastName
  • /signin → validate email, password
  • /google-signin → validate idToken

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions