A common collection of javascript functions to facilitate client-side interaction.
npm install @haventec/common-web-sdk
The common-web-sdk is exported as a default export and call be directly consumed by Javascript/Typescript file.
import haventecCommon from '@haventec/common-web-sdk'
let haventecCommon = require ('@haventec/common-web-sdk' )
However, the implementation requires window object (browser) and wouldn't function in a node.js environment.
-
hashPin: It returns the hashed pin.
-
getDeviceInfo: It returns the information about device including the fingerprint.
-
generateSalt: It returns the salt to be used while hashing.
To build and publish locally, clone the project and run the following:
npm install
npm pack / npm publish
This code is available under the MIT license. A copy of the license can be found in the LICENSE file included with the distribution.