mirror of
https://github.com/tinyauthapp/tinyauth.git
synced 2026-08-29 17:43:33 +08:00
13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
import { z } from "zod";
|
|
|
|
export const userContextSchema = z.object({
|
|
isLoggedIn: z.boolean(),
|
|
username: z.string(),
|
|
oauth: z.boolean(),
|
|
provider: z.string(),
|
|
configuredProviders: z.array(z.string()),
|
|
disableContinue: z.boolean(),
|
|
});
|
|
|
|
export type UserContextSchemaType = z.infer<typeof userContextSchema>;
|