mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-10 18:26:37 +00:00
21 lines
489 B
TypeScript
21 lines
489 B
TypeScript
import { z } from "zod";
|
|
|
|
export const providerSchema = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
oauth: z.boolean(),
|
|
});
|
|
|
|
export const appContextSchema = z.object({
|
|
providers: z.array(providerSchema),
|
|
title: z.string(),
|
|
appUrl: z.string(),
|
|
cookieDomain: z.string(),
|
|
forgotPasswordMessage: z.string(),
|
|
backgroundImage: z.string(),
|
|
oauthAutoRedirect: z.string(),
|
|
disableUiWarnings: z.boolean(),
|
|
});
|
|
|
|
export type AppContextSchema = z.infer<typeof appContextSchema>;
|