A simple NodeJS and AngularJS implementation of a website that uses Twilio Account Security services to protect all assets within a folder with Two-factor authentication. Additionally, it shows a Verify Phone Verification implementation.
It uses four channels for two-factor authentication delivery, SMS, Voice, Soft Tokens, and Push Notifications. You should have the Authy App installed to try Soft Token and Push Authentication support.
This app uses MongoDB as a data store. You will have to install MongoDB as well and make sure it is running.
- URL path "/protected" is protected with both user session and Twilio Authy Two-Factor Authentication
- One Time Passwords (SMS and Voice)
- SoftTokens
- Push Notifications (via polling)
- Phone Verification
- SMS or Voice Call
- Clone this repo
- Run
npm install
- Register for a Twilio Account.
- Setup an Account Security app via the Twilio Console.
- Grab an Authy API key from the Dashboard and paste it in
.env.example
- Save the
.env.example
file as.env
- Check and make sure MongoDB is up and running
- On *NIX, may be as easy as running
mongod
in a new tab.
- On *NIX, may be as easy as running
- Run
nodemon .
ornode .
from the cloned repo to run the app
- MIT