Skip to content

Commit

Permalink
add email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tracyyh committed Oct 20, 2024
1 parent 3ffea8f commit 86a4ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/trpc/src/procedures/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { baseProcedureBuilder } from "../internal/init";
export const signUpProcedure = baseProcedureBuilder
.input(
z.object({
email: z.string(),
email: z.string().email(),
password: z.string(),
}),
)
Expand Down Expand Up @@ -53,7 +53,7 @@ export const signUpProcedure = baseProcedureBuilder
export const signInProcedure = baseProcedureBuilder
.input(
z.object({
email: z.string(),
email: z.string().email(),
password: z.string(),
}),
)
Expand Down Expand Up @@ -117,7 +117,7 @@ export const signOutProcedure = baseProcedureBuilder
export const deleteAccountIfExistsProcedure = baseProcedureBuilder
.input(
z.object({
email: z.string(),
email: z.string().email(),
}),
)
.mutation(async ({ ctx, input }) => {
Expand Down

0 comments on commit 86a4ed0

Please sign in to comment.