SupabaseS
Supabase6mo ago
AC98

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:
Thank you so much!
Was this page helpful?