Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Generates an HOTP token.

Parameters

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

Configuration options.

Returns

string

Token.