Mutations
deleteUserOptions
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/solid"
import { createMutation } from "@tanstack/solid-query"
const deleteUser = createMutation(() => deleteUserOptions(authClient))
deleteUser.mutate()Params
Prop
Type
Last updated on