Mutations
resetPhoneNumberPasswordOptions
Create a Solid mutation that resets a phone credential password.
Options factory
import {
type PhoneNumberAuthClient,
resetPhoneNumberPasswordOptions,
useAuth
} from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const { authClient } = useAuth()
const resetPassword = createMutation(() =>
resetPhoneNumberPasswordOptions(authClient as PhoneNumberAuthClient)
)
resetPassword.mutate({
phoneNumber: "+12025550123",
otp: "123456",
newPassword
})Params
Prop
Type
Last updated on