I'm building a Next.js web application with a "phone verification" flow.
To verify phone numbers, my web app is sending users a text message using Twilio's API.
Then, users can reply to the text message with the word "YES" to confirm their phone number.
This "YES" text message is triggering a webhook within Twilio that is hitting one of my Next.js API endpoints which finally updates the database "verified" field to "true".
so far so good.
I would love for the front end to get redirected or updated once the phone number is verified.
Is there a way to achieve this behavior within Next.js framework? or maybe web sockets, redirect responses, meteorjs, or any other third-party library or service?
(I'm hosting my app on Vercel and GCP)
And, Yes, I know all about the verification code approach lol I'm just trying to avoid this step in my onboarding flow...
Would love to hear your thoughts!
Thanks!