mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-25 10:13:54 -05:00
chore: fix api calls in the org docs
This commit is contained in:
@@ -551,7 +551,7 @@ await authClient.organization.rejectInvitation({
|
||||
To get an invitation you can use the `getInvitation` function provided by the client. You need to provide the invitation id as a query parameter.
|
||||
|
||||
```ts title="auth-client.ts"
|
||||
authClient.organization.getInvitation({
|
||||
await authClient.organization.getInvitation({
|
||||
query: {
|
||||
id: params.id
|
||||
}
|
||||
@@ -610,7 +610,7 @@ If you want to add a member directly to an organization without sending an invit
|
||||
```ts title="api.ts"
|
||||
import { auth } from "@/auth";
|
||||
|
||||
auth.api.addMember({
|
||||
await auth.api.addMember({
|
||||
body: {
|
||||
userId: "user-id",
|
||||
organizationId: "organization-id",
|
||||
|
||||
Reference in New Issue
Block a user