Files
tinyauth/frontend/src/schemas/app-context-schema.ts
T
StavrosandGitHub b9e35716ac feat: invalid domain warning (#332)
* 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
2025-09-01 18:22:42 +03:00

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>;