1.0.0 • Published 8 months ago

otpqrc v1.0.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
8 months ago

OTPQRC

license

Install

yarn add otpqrc

Usage

Initialize the library

import OTPQRC from './otpqrc';
const otp = new OTPQRC('AwesomeApp'); // define

Link to Express instance

otp.express(app, '/qrcode'); // expose qrcode 3min (first start)
// Override: OTPQRC.APP_LACCESS = 3 * 60 * 1000;

Get token

otp.getToken();

Show QRCODE in terminal

otp.showQrcode();

Authors

  • Yarflam - initial worker

License

The project is licensed under Creative Commons (BY-NC-SA).

1.0.0

8 months ago