mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-24 00:15:17 -05:00
docs: correct API component usage (#6556)
This commit is contained in:
@@ -102,6 +102,8 @@ type createOrganization = {
|
||||
}
|
||||
```
|
||||
|
||||
</APIMethod>
|
||||
|
||||
<Callout type="warn">
|
||||
**Mutually Exclusive Parameters**
|
||||
|
||||
@@ -112,8 +114,6 @@ The `userId` and session headers cannot be used together:
|
||||
**For Admins:** To create an organization on behalf of another user, you must make the API call server-side **without** passing session headers.
|
||||
</Callout>
|
||||
|
||||
</APIMethod>
|
||||
|
||||
#### Restrict who can create an organization
|
||||
|
||||
By default, any user can create an organization. To restrict this, set the `allowUserToCreateOrganization` option to a function that returns a boolean, or directly to `true` or `false`.
|
||||
|
||||
Reference in New Issue
Block a user