Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@eternaljs/otp-generator

eternals-cloud32MIT1.0.1TypeScript support: included

An OTP (One-Time Password) generator is a crucial tool for enhancing security in digital transactions and logins. It generates unique, time-sensitive codes that serve as an additional layer of authentication. This adds an extra level of protection against

OTP, One-Time Password, Authentication Code, Two-Factor Authentication, Security Token, Time-Sensitive Code, Verification Code, Mobile Authentication, Code Generator, OTP Algorithm, Token Generation, Dynamic Password, Secure Login, Time-based OTP, TOTP, HOTP, OTP Library, Secure Access, Passwordless

readme

OTP (One-Time Password) Generator

An OTP (One-Time Password) generator is a crucial tool for enhancing security in digital transactions and logins. It generates unique, time-sensitive codes that serve as an additional layer of authentication. This adds an extra level of protection against unauthorized access, making it a fundamental component in securing sensitive information and ensuring user safety in various online interactions.

Installing

Using npm:

$ npm install @eternaljs/otp-generator

Using yarn:

$ yarn add @eternaljs/otp-generator

Usage

These examples assume you're in node, or something similar:

// JavaScript
const { generateOTP } = require("@eternaljs/otp-generator");

// TypeScript
import { generateOTP } from "@eternaljs/otp-generator";

// Generate Random OTP
const genPassword = generateOTP(6);
// '462861'

License

MIT