cfa_web_sdk

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i cfa_web_sdk

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • rb_net