1.1.0 • Published 6 years ago

keyid-client v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

node-keyid-client

A package to allow you to peform second factor authentication using Intensity Analytics TickStream.KeyID.

Install

npm install keyid-client

Usage

The keyid-client package provides several asynchronous functions that return JavaScript promises.

For more information pleas see the API documentation in the docs folder.

const KeyID = require('keyid-client');
const settings = {
	"license": "yourlicensekey",
	"url": "https://keyidservicesurl",
	"passiveValidation": false,
	"passiveEnrollment": false,
	"customThreshold": false,
	"thresholdConfidence": 70.0,
	"thresholdFidelity": 50.0,
	"timeout": 1000
};

var keyID = new KeyID(settings);  

var entityID = 'someusername';
var tsData = 'tsdata captured from a textbox using keyid browser javscript library';

keyID.removeProfile(entityID)
.then(()=>
{
	return keyID.saveProfile(entityID, tsData);
})
.then(()=>
{	
	return keyID.evaluateProfile(entityID, tsData);
})
.then(evalResponse=>
{
	console.log(evalResponse);
})
.catch(error=>
{
	console.log(error);
});
1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.22

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago