hamid1882H
Convex Community14mo ago
12 replies
hamid1882

OTP Verification after login on Profile dashboard

We are using twillio and resend as SMS and Email services, on intial login we are verifying phone number by sending otp to the user, and google login without otp verification.

Now we have built a Profile dashboard where a user can change the mobile number and email address, whenever user changes any of them I want to verify by otp.

We've tried using the same TwilioOTP.sendVerificationRequest by passing the required params but its not accepting the ctx which we are trying to pass from a mutation function.

when we tried resend.sendVerficationRequest we got the convex auth error saying that we cannot use this function outside the convex auth.

is there a way to fix this?
Was this page helpful?