BETTER-AUTH. UI
Mutations

useChangePassword

Change the current user's password.

Usage

import { changePasswordOptions } from "@better-auth-ui/core"
import { useMutation } from "@tanstack/solid-query"

const changePassword = useMutation(() => changePasswordOptions(authClient))

changePassword.mutate({ currentPassword: "old", newPassword: "new" })

Params

Prop

Type

Last updated on

On this page