yubikey

0.0.2 • Public • Published

A Node.js client library for verifying OTPs with the Yubikey api servers.

Install

npm install yubikey

Or fork this repo and help improve it.

Usage:

var Yubikey = require('yubikey');
 
var yubikey = new Yubkey(client_id, secret_key);
// client_id and secret_key can also be discovered from env
 
function onVerify(err) {
  // if err is null, you're good
}
 
yubikey.verify('vvvvvvcurikvhjcvnlnbecbkubjvuittbifhndhn', onVerify);

Testing

Plug your YubiKey in, and run ./test.js. Try entering the same token twice.

Resources

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    6
  • 0.0.1
    0

Package Sidebar

Install

npm i yubikey

Weekly Downloads

6

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jedparsons