@ackee/otpass
v0.2.3
Published
Easy to use 2FA module supporting both Timed one-time passwords (RFC 6238) and Hmac one-time-passwords (RFC 4226). Also contains helper functions and types so their use is as easy as possible.
Downloads
186
Keywords
Readme
OTPass
Module for HOTP (IETF RFC 4226) and TOTP (IETF RFC 6238) one time password codes without any dependencies for Node. Fully tested accordign to RFC specification, exposing full API of respective reference implementations.
Usage
OTPass is a library made for easy implementation of OTP functionality into your Node applications.
- 📑 Implemented in accordance with RFC specifications
- 🔑 Easily generate secrets and Google authentification URIs
- 🔐 Generate HOTP and TOTP codes
- ✔️ Validate codes, including custom time settings and sliding windows for range validation