Mutations
useDeleteUser
Delete the current user account.
Requires the Better Auth delete-user capability to be enabled on the server.
Usage
import { deleteUserOptions } from "@better-auth-ui/core"
import { useMutation } from "@tanstack/solid-query"
const deleteUser = useMutation(() => deleteUserOptions(authClient))
deleteUser.mutate()Params
Prop
Type
Last updated on