Mutations
useResetPassword
Complete the password reset flow with a token.
Usage
import { authClient } from "@/lib/auth-client"
import { useResetPassword } from "@better-auth-ui/react"
const { mutate: resetPassword } = useResetPassword(authClient)
resetPassword({
newPassword: "hunter3",
token
})Options factory
import { resetPasswordOptions } from "@better-auth-ui/core"
import { useMutation } from "@tanstack/react-query"
const { mutate } = useMutation(resetPasswordOptions(authClient))Params
Prop
Type
Last updated on