[GH-ISSUE #532] phoneNumber.verify() doesnt set phoneNumberVerified to true ? #8309

Closed
opened 2026-04-13 03:22:52 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ywyher on GitHub (Nov 14, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/532

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). Original GitHub issue: https://github.com/better-auth/better-auth/issues/532 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
GiteaMirror added the locked label 2026-04-13 03:22:52 -05:00
Author
Owner

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

does the API return a success message?

<!-- gh-comment-id:2477062007 --> @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

<!-- gh-comment-id:2477099637 --> @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
  })
<!-- gh-comment-id:2477106536 --> @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#8309