Files
tinyauth/frontend/src/schemas/user-context-schema.ts
2025-03-23 13:07:53 +02:00

12 lines
271 B
TypeScript

import { z } from "zod";
export const userContextSchema = z.object({
isLoggedIn: z.boolean(),
username: z.string(),
oauth: z.boolean(),
provider: z.string(),
totpPending: z.boolean(),
});
export type UserContextSchemaType = z.infer<typeof userContextSchema>;