This library provides tools for generating and validating HOTP and TOTP one-time passwords across various JavaScript environments.
OTPAuth is a JavaScript library for implementing HMAC-Based One-Time Passwords (HOTP) and Time-Based One-Time Passwords (TOTP). It runs across Node.js, Deno, Bun, and browsers, making it suitable for multi-platform authentication. You'll import it using `import * as OTPAuth from "otpauth";` and create instances like `new OTPAuth.TOTP({...})` for token generation and validation.
This library provides tools for generating and validating HOTP and TOTP one-time passwords across various JavaScript environments.
Developers needing to integrate HOTP or TOTP-based Multi-Factor Authentication (MFA) into their JavaScript applications should use this.