lab-otplib
usage tests of the otplib nodejs lib
Commands
Generate OTP Secret
npm run generate-secret
Generate OTP Code
npm run generate-code
Validate OTP Code
npm run check-code -- {otp code}
Useful links
-
[GitHub] yeojz / otplib - One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
-
How to Add Authentication with Google Authenticator in Node.js | Shahed Nasser - 2022-01-25
Python
-
PyOTP - The Python One-Time Password Library