mirror of
https://github.com/tinyauthapp/tinyauth.git
synced 2026-08-11 19:43:43 +08:00
11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
import { z } from "zod";
|
|
|
|
export const userContextSchema = z.object({
|
|
isLoggedIn: z.boolean(),
|
|
email: z.string(),
|
|
oauth: z.boolean(),
|
|
provider: z.string(),
|
|
});
|
|
|
|
export type UserContextSchemaType = z.infer<typeof userContextSchema>;
|