add credentials login with secure cookies

This commit is contained in:
Paul Coral
2025-08-22 23:12:01 +02:00
parent 2d3d1f57a7
commit 879b32b946
18 changed files with 251 additions and 31 deletions

View File

@@ -0,0 +1,3 @@
export interface AuthTokenPayload {
userId: string;
}

View File

@@ -5,10 +5,4 @@ export const credentialAuthParser = z.object({
password: z.string({ message: "invalid password" }),
});
export const credentialAuthResponse = z.object({
accessToken: z.string({ message: "invalid access tokens" }),
});
export type CredentialAuth = z.infer<typeof credentialAuthParser>;
export type CredentialAuthResponse = z.infer<typeof credentialAuthResponse>;

View File

@@ -1,2 +1,3 @@
export * from "./auth-token-payload";
export * from "./credential-auth";
export * from "./reset-auth";