otpqrc

1.0.0 • Public • Published

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).

Readme

Keywords

Package Sidebar

Install

npm i otpqrc

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

4.57 kB

Total Files

4

Last publish

Collaborators

  • yarflam