emailotp

2.0.0 • Public • Published

Email OTP Generator

Generic OTP generator.

Installation

In the project directory, you can run:

npm i emailotp

Usage

const { generate_OTP_email, check_OTP } = require("emailotp");

generate_otp_email function that takes one argument (the email address to send the OTP to) and performs email validation before sending the OTP

This OTP details will store in local storage.

check_OTP function that takes an Input stream object containing the email ID and User entering OTP value:

userDetails = { user_email: "tester1@dso.org.sg", otp: "173923" };
check_OTP(userDetails)

Readme

Keywords

none

Package Sidebar

Install

npm i emailotp

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

5.18 kB

Total Files

4

Last publish

Collaborators

  • jayashibu