This commit is contained in:
2025-11-08 13:42:43 +01:00
commit 7567d3eb05
125 changed files with 16866 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { z } from "zod";
export const SignupFormSchema = z.object({
name: z
.string()
.min(2, { message: "Name must be at least 2 characters long." })
.trim(),
password: z
.string()
.min(4, { message: "Be at least 8 characters long" })
.trim(),
});
export type FormState =
| {
errors?: {
name?: string[];
email?: string[];
password?: string[];
};
message?: string;
}
| undefined;
export interface SessionPayload {
userId: string;
expiresAt: Date;
}