commit | 688b88e7f8322bdf41b5f050cf9453581dff60a5 | [log] [tgz] |
---|---|---|
author | bbvox <bbvox@users.noreply.github.com> | Mon May 30 11:26:46 2016 +0300 |
committer | bbvox <bbvox@users.noreply.github.com> | Mon May 30 11:26:46 2016 +0300 |
tree | a0b7d93dad94fbb5b38a3d75409d41bcf472bfc9 | |
parent | 1914a96164c8c0192a2fcbb05095ef34bca051e5 [diff] |
Add getQrUrl method to extend the mobile flow (#3)
$ git clone
$ cd project_folder
$ npm install
$ grunt build
var mpin = mpinjs({server: <serverIP-and-port>}); mpin.init(<callback>); mpin.makeNewUser(<userId>); mpin.startRegistration(<userId>, <callback>); /* Wait for end-user to confirm identity */ mpin.confirmRegistration(<userId>, <callback>); /* If successful, read desired user secret (PIN or password) */ mpin.finishRegistration(<userId>, <user-secret>);
mpin.startAuthentication(<userId>, <callback>); /* If successful, read user secret (PIN or password) */ mpin.finishAuthentication(<userId>, <user-secret>, <callback>);
mpin.getAccessNumber(<callback>); /* Display Access number to end user */ mpin.waitForMobileAuth(<timeout-sec>, <retry-period-sec>, <callback>); /* If successfull - Authentication completed If exits with timeout, then no successfull authentication from mobile device was completed If one needs to cancel the waiting for authentication from the mobile device, call cancelMobileAuth() */
Install development dependencies:
$ npm install
Then:
$ npm test
Actively tested with node: