Skip to content

divyanshojha99/VOICE-OTP-SYSTEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Voice OTP System

 

🚀 REQUIREMENTS & IMPRO POINTS

Create a Account on Plivo and set-up your node.js enviornment... 

Create a js file voiceotp

Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phone number placeholder with an actual phone number in E.164 format (eg-+917485963265).

NOTE-- I recommend that you store your credentials in the auth_id and auth_token environment variables, to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and Plivo will automatically fetch the values from the environment variables. You can use process.env to store environment variables and fetch them when initializing the client.

💡TESTING

Save the file and run it, and start Redis.

 $ node voiceotp.js
 $ redis-server

You should see your basic server application in action as below:

 http://localhost:5000/dispatch_otp/?destination_number=<destination_number>
 http://localhost:5000/verify_otp/?destination_number=<destination_number>&otp=<otp>

About

JUST IN 5 MINUTES✌

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published