FairlineDefense / fairline-defense

0 stars 0 forks source link

The confirm email flow sometimes doesn't work #66

Closed jex441 closed 1 year ago

jex441 commented 1 year ago

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.

jex441 commented 1 year ago

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?