Mutations
sendPhoneNumberOtpOptions
Create a Solid mutation that sends a phone verification code.
Options factory
import {
sendPhoneNumberOtpOptions,
type PhoneNumberAuthClient,
useAuth
} from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const { authClient } = useAuth()
const sendOtp = createMutation(() =>
sendPhoneNumberOtpOptions(authClient as PhoneNumberAuthClient)
)
sendOtp.mutate({ phoneNumber: "+12025550123" })Params
Prop
Type
Last updated on