mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 20:55:42 +00:00
13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
import { z } from "zod";
|
|
|
|
export const userContextSchema = z.object({
|
|
isLoggedIn: z.boolean(),
|
|
email: z.string(),
|
|
oauth: z.boolean(),
|
|
provider: z.string(),
|
|
configuredProviders: z.array(z.string()),
|
|
disableContinue: z.boolean(),
|
|
});
|
|
|
|
export type UserContextSchemaType = z.infer<typeof userContextSchema>;
|