Skip to content

arshadaiyoob/xauth-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xauth-client

xAuth-Client

Installation

npm install --save dev-xauth-client

or with yarn

yarn add dev-xauth-client

Usage

npm

var xAuth = require('dev-xauth-client');
// create a new instance of the xAuth "class"
var xauth = new xAuth();
// init with api and secret
xauth.init('api', 'secret');

// pass the users id to enable two-factor and returns Qr-Code to register the device
xauth.enableXAuth(clientId).then((response) => {
    qr = response.data.qr-code;
})
// sending auth request to mobile
xauth.twoFactorRequest(userId);

About

Two-Factor Authentication with Mobile Biometrics

Resources

License

Stars

Watchers

Forks

Packages