OrgCreateForm
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
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
onCreated | (org: Organization) => void | |
onError | (err: Error) => void | |
className | string |