mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-30 05:35:44 +00:00
12 lines
271 B
TypeScript
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>;
|