commit | f33c5a1f28c11b7d52409db9209f9bc349dcaa3b | [log] [tgz] |
---|---|---|
author | Boyan Bakov <boyan.bakov@certivox.com> | Mon May 30 13:22:33 2016 +0300 |
committer | Boyan Bakov <boyan.bakov@certivox.com> | Mon May 30 13:22:33 2016 +0300 |
tree | 0ef0d5897f5148168b031e537baedea4cb5cf064 | |
parent | 688b88e7f8322bdf41b5f050cf9453581dff60a5 [diff] |
Update reference to milagro-crypto & remove bower version
$ 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: