feat(auth): setup/login/logout, argon2id, sessions, login rate limit
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user