emailotp
v2.0.0
Published
Generate Email OTP for valid email
Downloads
4
Readme
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: "[email protected]", otp: "173923" };
check_OTP(userDetails)