The Official NodeJS SDK of Spriv 2FA
- Create account on spriv.com
- Create an API Access Key
Create the app:
$ mkdir newApp
$ cd newApp
$ npm init
Install node-spriv as a dependency:
$ npm install --save node-spriv
Example Use
// index.js
var app_key = "" //Your Spriv App Key
var app_secretkey = "" //Your Spriv App Secret Key
var spriv = require("node-spriv")(app_key, app_secretkey)
// Now you are ready to begin using spriv