Photo by Micah Williams on Unsplash

Twilio’s Verify API

  • knowledge (something only the user knows) i.e. security questions
  • possession (a device only the user would have) i.e. one time sms verification code
  • inherent (something about the user) i.e fingerprint scan, face recognition
  • location based (about the users location) i.e. access to some filesystems from certain networks or terminals

The Ups:

The Downs:

Let’s Add SMS-Verification to a our Node.js projects

  1. Sign up for Twilio ( they have a free tier if you are working on a personal project )
  2. Add dependencies and Twilio account information to your project
  3. Send our first SMS phone verification
  4. Use verification codes to sign in

Signing Up

Add Dependencies

Making a call to the Twilio service

//if you named your env variables differently then I did above make 
//sure they match
const twilio = require('twilio')(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN);

The Gist

Happy Hacking!

Resources:

--

--

Full- Stack Software Engineer with a former life in high-end restaurant management. Currently working in React JS and Ruby on Rails.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Robert K.

Full- Stack Software Engineer with a former life in high-end restaurant management. Currently working in React JS and Ruby on Rails.