Hi I am trying to update user phone number after authentication.
Hi I am trying to update user phone number after authentication.
to do so I am using this function with supabase-js v2
const {data: { session },} = await supabase.auth.updateUser({
phone:
});
it sends user the OTP but I can see in the auth users table the phone number is not updated. Also when I verify the users mobile number with OTP it does not work.
ps: using message bird for OTP message.
Do you know what I am doing wrong here?
to do so I am using this function with supabase-js v2
const {data: { session },} = await supabase.auth.updateUser({
phone:
${mobile}, });
it sends user the OTP but I can see in the auth users table the phone number is not updated. Also when I verify the users mobile number with OTP it does not work.
ps: using message bird for OTP message.
Do you know what I am doing wrong here?