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

x/otpauth/dist/otpauth.node.min.cjs>Secret.fromBase32

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

Converts a base32 string to a Secret object.

Parameters

str: string

Base32 string.

Returns

Secret object.