BETTER-AUTH. UI
Mutations

useResetPhoneNumberPassword

Reset a phone credential password with a verification code.

const { mutate: resetPassword } = useResetPhoneNumberPassword(
  authClient as PhoneNumberAuthClient
)

resetPassword({
  phoneNumber: "+12025550123",
  otp: "123456",
  newPassword
})

Params

Prop

Type

Last updated on

On this page