Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/otpauth/dist/otpauth.umd.min.js>HOTP.generate

One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers.
Go to Latest
method HOTP.generate
import { HOTP } from "https://deno.land/x/otpauth@v9.3.3/dist/otpauth.umd.min.js";

Generates an HOTP token.

Parameters

unnamed 0: { secret: Secret; algorithm?: string | undefined; digits?: number | undefined; counter?: number | undefined; }

Configuration options.

Returns

string

Token.