yubinode

0.0.2 • Public • Published

yubinode

YubiKey OTP testing for Node.JS

Installation

# npm install yubinode

Usage

var yubinode = require('yubinode');

yubinode.setCreds(API_ID, API_KEY);

yubinode.testOTP(OTP, function(result) {

	console.log(result);
	
	/*
		"result" will be an array. 
		The first item will either be 1 or 0, success or fail, respectively.
		The second item will be the message from the server.
		The third item wil be the status code.
	*/

});

Package Sidebar

Install

npm i yubinode

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • someoneweird