Klaviyo is unreliable and we should use Twilio instead.
The twilio/index.js can process both sms and email confirmation by specifying a channel in the request body and allowing for an email or phone to be passed through instead of just phone.
Also it will need to switch emailVerified or phoneVerified depending on the channel.
That way we don't need separate directories for email and sms confirmation.
Not sure if Twilio has a way to confirm email without a one time password. Can we style the Twilio verify email the same way the Klaviyo one is done? Or similar?
Klaviyo is unreliable and we should use Twilio instead.
The twilio/index.js can process both sms and email confirmation by specifying a channel in the request body and allowing for an email or phone to be passed through instead of just phone.
Also it will need to switch emailVerified or phoneVerified depending on the channel.
That way we don't need separate directories for email and sms confirmation.