feat(auth): setup/login/logout, argon2id, sessions, login rate limit

This commit is contained in:
marcuspaico
2026-08-17 14:11:00 -07:00
parent 3c796da649
commit 0b8e897e31
5 changed files with 162 additions and 3 deletions

View File

@@ -2,3 +2,7 @@ import { z } from "zod";
export const HealthResponse = z.object({ ok: z.literal(true) });
export type HealthResponse = z.infer<typeof HealthResponse>;
export const PasswordBody = z.object({ password: z.string().min(8).max(200) });
export const MeResponse = z.object({ needsSetup: z.boolean(), authenticated: z.boolean() });
export type MeResponse = z.infer<typeof MeResponse>;