Search code examples
angularjsionic-frameworktwiliofirebase-realtime-databasengcordova

login system with a phone authentication system using twilio


I'm trying to build a login system with a phone authentication system. Does anyone of you have experience with this? I'm using fire base as a backend, and twilio for sending sms. So i need to send sms with a pin. i'm developing this app using (ionic + firebase + twilio)

Thanks


Solution

  • Twilio developer evangelist here.

    In order to send SMS messages using Twilio you're going to need your own server so that you can make the API requests to the Twilio API. I checked through Firebase and there is nowhere for you to run your own code on there, which is a shame, though it does supply static site hosting these days, which is nice.

    I recommend you take a look through the Twilio tutorials which will give you a good idea how to build an application that can perform the API requests for you. I might start by checking out:

    (Authy is the best way of verifying and authenticating phone numbers and is part of Twilio now.)

    Let me know if this helps at all.