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

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

One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Go to Latest
method URI.stringify
import { URI } from "https://deno.land/x/otpauth@v9.0.2/dist/otpauth.node.min.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.