chore: fix api calls in the org docs

This commit is contained in:
KinfeMichael Tariku
2025-04-26 09:36:51 +03:00
committed by GitHub
parent 25e82669ee
commit 92f7d28033
+2 -2
View File
@@ -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",