FormSchema() — supabase Function Reference
Architecture documentation for the FormSchema() function in CreateClerkAuthDialog.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx lines 41–54
.superRefine((val, ctx) => {
if (
!val.domain.match(/https:\/\/clerk([.][a-z0-9-]+){2,}\/?/) &&
!val.domain.match(/https:\/\/[a-z0-9-]+[.]clerk[.]accounts[.]dev\/?$/)
) {
ctx.addIssue({
code: z.ZodIssueCode.invalid_string,
path: ['domain'],
message:
'Production Clerk domains use HTTPS and start with the clerk subdomain (https://clerk.example.com). Development Clerk domains use HTTPS and end with .clerk.accounts.dev (https://example.clerk.accounts.dev).',
validation: 'regex',
})
}
})
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free