Skip to content
rw3iss Auth

OrgCreateForm

form @rw3iss/auth-client/preact/forms/OrgCreateForm framework-adapters/preact/components/forms/OrgCreateForm.tsx ↗

Admin-only org creation. POSTs /admin/organizations. On success the new Organization is handed to onCreated so the parent can navigate / select it / refresh a list.

For tenant-driven self-service org creation (a user creating their own org during onboarding), wire your own variant — the underlying SDK call is the same; only the gating differs.

Usage

import { OrgCreateForm } from '@rw3iss/auth-client/preact/forms';
<OrgCreateForm
onError={(err) => console.error(err)}
/>

Props

NameTypeDescription
clientAuthClient
onCreated(org: Organization) => void
onError(err: Error) => void
classNamestring