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

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

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

Generates an HOTP token.

Parameters

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

Returns

string

Token.