cfa_web_sdk
v1.1.0
Published
SDK to verify the user authenticity.
Downloads
3
Maintainers
Readme
WebSDK
A JavaScript library to verify the authenticity of the user.
You can use it on images in the browser, either capture image using the device camera or from an image from file input element. This package can also be used in Android or iOS environments.
Prerequisites
Node should me installed on the user system to install this package.
Quick start
- Install with NPM:
npm install cfa_web_sdk
.
Installation
Include files:
<link rel="icon" href="/path/to/favicon.ico" type="image/x-icon">
<script type="text/javascript" src="/path/to/webSDK.config.js"></script>
<script type="text/javascript" src="/path/to/webSDKClass.js"></script>
<link type="text/css" href="/path/to/style.css" rel="stylesheet">
Usage
Add the below line in the body of the HTML document to use the functionality of the webSDK.
<button class="cfa-btn" id="btnAuthenticate">Authenticate</button>
Then, modify the path of the image files in webSDK.config.js file according to the path of the img directory.