Can I use Phone Number plugin to just add phone number to existing users?
Basically I just wanna add phone number to existing users. Can I use Phone number plugin to do so or should I implement it myself? because Everytime I verify the phone number. callbackOnVerification return null for the user. Here is my code:
client:
/lib/auth.ts:
6 Replies
did you figure this out?
having the same issue
User can come back as null, the user I want to update wont come back event tho they exist
you need to send them otp and verify their otp to get it updated. But you can also just use
updateUser
to update the user phone number
@basic white guyI running the send a verify in the same file
this is triggering
callbackOnVerification
but its not updating the user table
would you recommend in the onSuccess of the .verify
to update the user table, since callbackOnVerification
doesnt return anything?it shouldn't require
callbackOnVerification
you can pass updatePhoneNumber:true
to update the phone number
thank you its updating it
Thank you! It worked! ❤️