Skip to content

visshnnu-tejaa-98/otp-manager-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

otp-manager-node

This is an npm package, you can experience the demo application https://otp-manager-demo.netlify.app/

How to use

//import
import otpManager from 'otp-manager-node';

//usuage

//generating otp
const generateOtp = async (){
    const sendOtp = await otpManager.generateOTP(<email>);// sends otp to the specified email and return "created" when it send mail to the specified email
    console.log(sendOtp)

//verifing otp
const verigyOtp = async (){
    const verifyOtp = await otpManager.verifyOTP(email, otp); //verifies otp.
    console.log(verifyOtp)
}

when we verify OTP then the function returns a responce {status:<true/false>} if OTP matches the response.status will return true else it will return false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published