otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers
otplib
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library
speakeasy
Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
otp
OTP utility for Google Authenticator
jsotp
Javascript One-Time Password module.