BETTER-AUTH. UI
Mutations

useRemoveMember

Remove a member from an organization.

Organization mutations require organizationClient() on the Better Auth client.

Usage

import { useAuth, useRemoveMember } from "@better-auth-ui/react"

const { authClient } = useAuth()
const mutation = useRemoveMember(authClient)

mutation.mutate(/* params */)

Options factory

import { removeMemberOptions } from "@better-auth-ui/react"
import { useMutation } from "@tanstack/react-query"

const mutation = useMutation(removeMemberOptions(authClient))

Params

Prop

Type

Last updated on

On this page