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

x/otpauth/dist/otpauth.node.mjs>URI.stringify

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

Converts an HOTP/TOTP object to a Google Authenticator key URI.

Parameters

otp: HOTP | TOTP

HOTP/TOTP object.

Returns

string

Google Authenticator Key URI.