Cloudkibo / KiboPush

0 stars 1 forks source link

Explore firebase sms api #6241

Closed Faizan20 closed 5 years ago

Faizan20 commented 5 years ago

This task is for learning purpose.

  1. In this task you will read the firebase authentication with a Phone Number documentation here is the link of that https://firebase.google.com/docs/auth/web/phone-auth

  2. Explore the auth api by testing it with the code too so that you will have a clear understanding of it.

Faizan20 commented 5 years ago

i have read the documentation of this some of the things are not clear to me at this moment about phone authentication. will implement it for testing purpose tomrrow so that i will have clear understanding of it

Faizan20 commented 5 years ago

i tried to implement it today in our MVP bot signup flow but found out that for firebase phone authentication we must set up Firebase's reCAPTCHA verifier and with the messenger bot i was not able to do it.

Screenshot from 2019-07-17 23-02-39

Faizan20 commented 5 years ago

i have also contacted to the firebase team regarding this that if we could use it or not with the messenger chat bot

Screenshot from 2019-07-17 23-17-09

Faizan20 commented 5 years ago

worked on it today too and found out that there is no server-side API for us to verify the user's phone number with Firebase Authentication. the firebase API number aunthentication API is only for the frontend as the first answer is given on this link: https://stackoverflow.com/questions/52184020/firebase-phone-authentication-using-nodejs

i have emailed the clicky about this. and for now i am putting this task on hold untill they get back to us.

Faizan20 commented 5 years ago

I have looked into and found out different alternate options here for sms authentication. the are following options:

  1. nexmo: https://www.nexmo.com/use-cases/two-factor-authentication
  2. twillio: https://www.twilio.com/docs/verify/api/v1/quickstart/nodejs

or we can use a service provider platform to send SMS. and from the server side we can create a otp and by using the send sms api of service provider we can send that otp to user. there are some of the service provider to send sms:

  1. MessegeBird: https://developers.messagebird.com/
  2. sendpk: http://sendpk.com/

i will disscuss it with sojharo and will figure put what option to use in our MVP chat bot case

Faizan20 commented 5 years ago

As the clicky guys have provided us the telenor api to send sms we dont need to look into this more that is why i am resolving this issue now.