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

x/otpauth/dist/otpauth.slim.esm.js>URI.parse

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

Parses a Google Authenticator key URI and returns an HOTP/TOTP object.

Parameters

uri: string

Google Authenticator Key URI.

Returns

HOTP | TOTP

HOTP/TOTP object.