Skip to content

Commit

Permalink
feat: allow whatsapp channels with Twilio Verify (supabase#1207)
Browse files Browse the repository at this point in the history
WhatsApp is supported by Twilio Verify but we've missed the validation
here.
  • Loading branch information
hf authored Aug 2, 2023
1 parent 2fb0cf5 commit ff98d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/sms_provider/sms_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func IsValidMessageChannel(channel string, smsProvider string) bool {
case SMSProvider:
return true
case WhatsappProvider:
return smsProvider == "twilio"
return smsProvider == "twilio" || smsProvider == "twilio_verify"
default:
return false
}
Expand Down

0 comments on commit ff98d2f

Please sign in to comment.