Skip to content
r.

otpauth

hectorm/otpauth · Public GitHub repository

One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

otpauth live demo screenshot
Captured from the live demo · 2026-11-06

About this project

Author-written excerpt from the project README.

One Time Password library for Node.js, Deno, Bun and browsers.

It supports the generation and validation of HMAC-Based One-Time Passwords (HOTP) as specified in RFC 4226 and Time-Based One-Time Passwords (TOTP) as specified in RFC 6238. Frequently used in Multi-Factor Authentication (MFA) / Two-Factor Authentication (2FA) systems.

You can try the library with the demo application available at otpauth.molinero.dev. If you wish to interact with the library in your browser console, the following snippet can be used: javascript const OTPAuth = await import("otpauth");

Requirements and intended audience

One Time Password library for Node.js, Deno, Bun and browsers.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-24. Source: https://github.com/hectorm/otpauth/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-02. Saved release: v9.5.2 · 2026-09-03. These dates do not guarantee ongoing maintenance.

Technologies
Node.js
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-06. This does not test every feature.

Browse related categories