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

x/otpauth/dist/otpauth.d.cts>TOTP#generate

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

Generates a TOTP token.

Parameters

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

Configuration options.

Returns

string

Token.