phoneNumber.verify() doesnt set phoneNumberVerified to true ? #225

Closed
opened 2026-03-13 07:38:40 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ywyher on GitHub (Nov 14, 2024).

so iam calling the phoneNumber.verify() function in my app, and when checking the database i see that the phoneNumberVerified column is still FALSE beside the OTP code being correct

  await phoneNumber.verify({
      phoneNumber: value,
      code: data.otp
  })
  • OS: Arch Linux
  • Browser: Firefox
  • Version: ^0.8.2
Originally created by @ywyher on GitHub (Nov 14, 2024). so iam calling the `phoneNumber.verify()` function in my app, and when checking the database i see that the `phoneNumberVerified` column is still `FALSE` beside the OTP code being correct ```tsx await phoneNumber.verify({ phoneNumber: value, code: data.otp }) ``` - OS: Arch Linux - Browser: Firefox - Version: ^0.8.2
Author
Owner

@Bekacru commented on GitHub (Nov 14, 2024):

does the API return a success message?

@Bekacru commented on GitHub (Nov 14, 2024): does the API return a success message?
Author
Owner

@ywyher commented on GitHub (Nov 14, 2024):

not currently on my device
but in my auth.ts file i made the signUpOnVerification option to be true
and on verifying the code it did create a user in the database
so i guess it did return a success message

@ywyher commented on GitHub (Nov 14, 2024): not currently on my device but in my `auth.ts` file i made the `signUpOnVerification` option to be true and on verifying the code it did create a user in the database so i guess it did return a success message
Author
Owner

@Bekacru commented on GitHub (Nov 14, 2024):

I'm asking if error is returned here

const { data. error } = await phoneNumber.verify({
      phoneNumber: value,
      code: data.otp
  })
@Bekacru commented on GitHub (Nov 14, 2024): I'm asking if error is returned here ```ts const { data. error } = await phoneNumber.verify({ phoneNumber: value, code: data.otp }) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#225