Using Authy Two-Factor Authentication in Node.js and AngularJS

DZone 's Guide to

Using Authy Two-Factor Authentication in Node.js and AngularJS

Implementing two-factor authentication in your JavaScript apps is quick and easy. Using a sample application, this quick runthrough guides you through the installation.

· Security Zone ·
Free Resource

If you are planning to use two-factor authentication in your application or getting started with the technology, this is definitely for you. 

This simple implementation of a web application based in Node.js and AngularJS will show you how to use two-factor authentication and protect assets. As a bonus feature, we also have a simple Phone Verification API sample application that allows you to verify the user has the device in their possession.

To download or clone this sample application, go here.

To get started, make sure you have Node.js and MongoDB installed and ready to go.

Follow these instructions to get up and running:

  • Clone the repo.
  • Run npm install
  • Register for a Twilio account.
  • Set up an Authy application via the Twilio Console.
  • Copy the Authy API Key from the Authy Dashboard and save it in your demo.env file.
  • Make sure your MongoDB instance is up and running.
  • Run node . from the cloned repo to start the app.

Have fun!

angularjs, node js, security, two-factor authentication

Published at DZone with permission of Marcelo Jabali , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}