2fa-lib
Tiny zero-dependency TOTP and HOTP library for Node.js, browsers, Deno, Bun, Cloudflare Workers and edge runtimes. RFC 6238 / RFC 4226 compliant. Google Authenticator compatible two-factor authentication (2FA / MFA) for JavaScript and TypeScript.
Ecosystem
npmjs.org
npmjs.org
Latest Release
18 days ago
0.1.2
18 days ago
Versions
2
2
Downloads
199 last month
199 last month
Links
| Registry | npmjs.org |
| Source | Repository |
| Homepage | Homepage |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:npm/2fa-lib
spec |
| License | MIT |
| First Release | 18 days ago |
| Last Synced | 16 days ago |
Keywords
totp hotp otp 2fa mfa two-factor two-factor-authentication multi-factor multi-factor-authentication authenticator google-authenticator authy 1password rfc6238 rfc4226 rfc-6238 rfc-4226 one-time-password one-time-passcode time-based time-based-otp hmac hmac-otp qrcode qr-code otpauth security auth authentication login verify totp-generator totp-verify node browser deno bun edge cloudflare-workers vercel-edge typescript esm zero-dependencies lightweight tiny
totp hotp otp 2fa mfa two-factor two-factor-authentication multi-factor multi-factor-authentication authenticator google-authenticator authy 1password rfc6238 rfc4226 rfc-6238 rfc-4226 one-time-password one-time-passcode time-based time-based-otp hmac hmac-otp qrcode qr-code otpauth security auth authentication login verify totp-generator totp-verify node browser deno bun edge cloudflare-workers vercel-edge typescript esm zero-dependencies lightweight tiny
Rankings on npmjs.org
Downloads
Top 9.2%