mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
docs: fix typo
This commit is contained in:
@@ -361,6 +361,8 @@ client.organization.getInvitation({
|
||||
})
|
||||
```
|
||||
|
||||
## Members
|
||||
|
||||
### Remove Member
|
||||
|
||||
To remove you can use `organization.removeMember`
|
||||
@@ -385,12 +387,13 @@ await client.organization.updateMemberRole({
|
||||
|
||||
### Get Active Member
|
||||
|
||||
To get the current member of the organization you can use the `organization.getCurrentMember` function. This function will return the current member of the organization.
|
||||
To get the current member of the organization you can use the `organization.getActiveMember` function. This function will return the current member of the organization.
|
||||
|
||||
```ts title="client.ts"
|
||||
const member = await client.organization.getActiveMember()
|
||||
```
|
||||
|
||||
|
||||
## Access Control
|
||||
|
||||
The organization plugin providers a very flexible access control system. You can control the access of the user based on the role they have in the organization. You can define your own set of permissions based on the role of the user.
|
||||
|
||||
Reference in New Issue
Block a user