otplib
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library
otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers
authenticator
Two- / Multi- Factor Authenication (2FA / MFA) for node.js
otp-io
🕖 Typed library to work 2fa via Google Authenticator/Time-based TOTP/Hmac-based HOTP