mirror of
https://github.com/tinyauthapp/tinyauth.git
synced 2026-08-31 10:33:31 +08:00
* wip * refactor: update domain warning layout * i18n: add domain warning translations * refactor: rework hooks usage * feat: clear timeouts * fix: use useeffect to cleanup timeout * refactor: rework redirects and history storage * refactor: rename domain to root domain
15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
import { z } from "zod";
|
|
|
|
export const appContextSchema = z.object({
|
|
configuredProviders: z.array(z.string()),
|
|
title: z.string(),
|
|
genericName: z.string(),
|
|
appUrl: z.string(),
|
|
rootDomain: z.string(),
|
|
forgotPasswordMessage: z.string(),
|
|
oauthAutoRedirect: z.enum(["none", "github", "google", "generic"]),
|
|
backgroundImage: z.string(),
|
|
});
|
|
|
|
export type AppContextSchema = z.infer<typeof appContextSchema>;
|