Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/otpauth/dist/otpauth.slim.esm.min.js>HOTP#generate

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

Generates an HOTP token.

Parameters

optional
unnamed 0: { counter?: number | undefined; } | undefined

Configuration options.

Returns

string

Token.