0.2.1 • Published 3 years ago

yubikey-async v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

yubikey-async

A Promise-based client library for verifying Yubikey OTPs with Yubikey's API servers.

Based on the original work of node-yubikey.

Usage

import { Yubikey } from 'yubikey-async';

const otp = ...;

const auth = new Yubikey(process.env.YUBIKEY_CLIENT_ID, process.env.YUBIKEY_CLIENT_SECRET);

const isValid = await auth.verify(otp);

...

Testing

Please use the test.ts file with ts-node and a valid Yubikey device.

npm test -- --otp <otp>

License

See: License;

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago