Mutations
useRemoveMember
Remove a member from an organization.
Organization mutations require organizationClient() on the Better Auth client.
Usage
import { authClient } from "@/lib/auth-client"
import { useRemoveMember } from "@better-auth-ui/react/plugins/organization"
const mutation = useRemoveMember(authClient)
mutation.mutate(/* params */)Options factory
import { removeMemberOptions } from "@better-auth-ui/core/plugins/organization"
import { useMutation } from "@tanstack/react-query"
const mutation = useMutation(removeMemberOptions(authClient))Params
Prop
Type
Last updated on