Node.js Client for Twilio Authy Two-Factor Authentication (2FA) API
Authy client for Node.js written by Adam Baldwin.
Documentation for this Node.js usage of the Authy API lives in the official Twilio documentation.
The Authy API supports multiple channels of 2FA:
- One-time passwords via SMS and voice.
- Soft token (TOTP via the Authy App)
- Push authentication via the Authy App
If you only need SMS and Voice support for one-time passwords, we recommend using the Twilio Verify API instead.
For a full tutorial, check out the Node.js Authy Quickstart in our docs:
Authy Node.js Installation
Install with npm:
$ npm install authy
To use the Authy client, require
Authy and initialize it with your production API Key found in the Twilio Console:
var authy = require('authy')('APIKEY');
To run tests: