mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-07-04 13:59:17 +00:00
NORY-46: add initial create-client form to page
This commit is contained in:
parent
253ad4e2b0
commit
749974b7ec
3 changed files with 292 additions and 0 deletions
12
dashboard/src/lib/forms/client-form.ts
Normal file
12
dashboard/src/lib/forms/client-form.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { z } from 'zod';
|
||||
|
||||
export const clientFormSchema = z.object({
|
||||
access_token_strategy: z.string().default('opaque').readonly(),
|
||||
client_name: z.string().min(1, 'Client name is required'),
|
||||
owner: z.string().min(1, 'Owner is required'),
|
||||
scope: z.string(),
|
||||
skip: z.boolean(),
|
||||
logo_uri: z.string().url(),
|
||||
tos_uri: z.string().url(),
|
||||
policy_uri: z.string().url(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue