UNPKG

otplib

Version:

TypeScript-first library for TOTP and HOTP with multi-runtime and plugin support

9 lines • 1.57 kB
import { a as generateURI, c as OTPAuthOptions, d as OTPVerifyOptions, f as TOTPOptions, i as generateSync, l as OTPGenerateOptions, n as generate, o as verify, r as generateSecret, s as verifySync, u as OTPStrategy } from "./functional-BFEWCHfj.cjs"; import { OTP, OTPClassOptions, OTPGenerateOptions as OTPGenerateOptions$1, OTPURIGenerateOptions, OTPVerifyOptions as OTPVerifyOptions$1 } from "./class.cjs"; import { AlgorithmError, AlgorithmUnsupportedError, Base32Plugin, CryptoPlugin, HMACError, HashAlgorithm, OTPGuardrails, OTPGuardrailsConfig, OTPResult, createGuardrails, stringToBytes, wrapResult, wrapResultAsync } from "@otplib/core"; import { HOTP } from "@otplib/hotp"; import { TOTP, VerifyResult } from "@otplib/totp"; import { NobleCryptoPlugin } from "@otplib/plugin-crypto-noble"; import { ScureBase32Plugin } from "@otplib/plugin-base32-scure"; export { AlgorithmError, AlgorithmUnsupportedError, type Base32Plugin, type CryptoPlugin, HMACError, HOTP, type HashAlgorithm, NobleCryptoPlugin, OTP, type OTPAuthOptions, type OTPClassOptions, type OTPGenerateOptions as OTPFunctionalOptions, type OTPGenerateOptions$1 as OTPGenerateOptions, type OTPGuardrails, type OTPGuardrailsConfig, type OTPResult, type OTPStrategy, type OTPURIGenerateOptions, type OTPVerifyOptions as OTPVerifyFunctionalOptions, type OTPVerifyOptions$1 as OTPVerifyOptions, ScureBase32Plugin, TOTP, type TOTPOptions, type VerifyResult, createGuardrails, generate, generateSecret, generateSync, generateURI, stringToBytes, verify, verifySync, wrapResult, wrapResultAsync }; export {};