BETTER-AUTH. UI
Mutations

useRemoveMember

Remove a member from an organization.

Usage

import { useRemoveMember } from "@better-auth-ui/solid"

const mutation = useRemoveMember(authClient)

mutation.mutate(/* params */)

Organization mutations require organizationClient() on the Better Auth client. They attach the same meta.invalidates / meta.awaits cache metadata used by upstream React, and the Solid AuthProvider installs a mutation invalidator that refreshes affected organization/session caches after successful auth mutations.

Options factory

import { removeMemberOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"

const mutation = createMutation(() => removeMemberOptions(authClient))

Params

Prop

Type

Last updated on

On this page