feat: Add email verification and password reset

This commit is contained in:
Dries Augustyns
2025-12-20 20:06:25 +01:00
parent 7e25c148cc
commit 1a5607f278
31 changed files with 1026 additions and 122 deletions
+8 -1
View File
@@ -48,9 +48,16 @@ export const AuthenticationSchemas = {
email,
password: z.string().min(6),
}),
resetPassword: z.object({
verifyEmail: z.object({
token: z.string().length(64, 'Invalid verification token'),
}),
requestPasswordReset: z.object({
email,
}),
resetPassword: z.object({
token: z.string().length(64, 'Invalid reset token'),
newPassword: z.string().min(6, 'Password must be at least 6 characters'),
}),
} as const;
export const ProjectSchemas = {