1.0.10 • Published 4 years ago

dev-xauth-client v1.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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);
1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago