1.0.0 • Published 2 years ago
otpqrc v1.0.0
OTPQRC
Install
yarn add otpqrcUsage
Initialize the library
import OTPQRC from './otpqrc';
const otp = new OTPQRC('AwesomeApp'); // defineLink 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
2 years ago