Supabase Auth using Twilio whatsapp with sms fallback
Hi everyone, I'm using supabase auth via Twilio verify currently to send otp codes to customers using SMS via Twilio's verify service. We want to also start sending codes via whatsapp through Twilio Verify.
Our goal is the following: First try to send the otp code via whatsapp (if the user has wa) else fallback to sms (if they don't have wa).
My questions are: Is this possible out of the box using suapbase auth, particularly this fallback behavior? If so, how and is there a way to tell whether the user authenticates via wa or regular sms so that we can store this in our system to help us prioritize the right communication channel with them in the future?
I've gone through the following documentation:
Our goal is the following: First try to send the otp code via whatsapp (if the user has wa) else fallback to sms (if they don't have wa).
My questions are: Is this possible out of the box using suapbase auth, particularly this fallback behavior? If so, how and is there a way to tell whether the user authenticates via wa or regular sms so that we can store this in our system to help us prioritize the right communication channel with them in the future?
I've gone through the following documentation:
- Twilio verify with whatsapp: https://www.twilio.com/docs/verify/whatsapp
- Supabase auth doc: https://supabase.com/docs/guides/auth/phone-login?queryGroups=language&language=python&showSmsProvider=Twilio
- Post about fallback I found on Twilio, but IT DOES NOT MENTION FALLBACK IF USER DOESNT HAVE WA FOR EX: https://www.twilio.com/en-us/changelog/Verify_Fallback_Scenarios