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