git hub repo for code https://github.com/vikramsingh7568/ot...
using twilio and otp generator package we are sending otp to mobile no
source code
copy this code and paste in index.js file
const otpGen = require("otp-generator")
let otp = otpGen.generate(6, { digits: true, upperCaseAlphabets: false, lowerCaseAlphabets:
false, specialChars: false })
var sid = "";
var auth_token = "";
var twilio = require("twilio")(sid, auth_token);
twilio.messages
.create({
from: "+13608032863",
to: "+918514075565",
body: `this is testing otp is ${otp}`,
})
.then(function (res) { console.log("message has sent!") })
.catch(function (err) {
console.log(err);
});
// step one create empty folder open the folder in vs code
// step two create index.js file in that folder press enter
// step three open terminal and write npm init -y press enter
// step four in that terminal write npm i otp-generator press enter
// step five in the terminal write npm i twilio press enter
// npm init
// npm i otp-generator
// npm i twilio
// go to this website and create the account and copy paste teh sid token or twilio no
//https://www.twilio.com/
//
dsa playlist
• Dsa series
On this page of the site you can watch the video online send otp using node js live zoom class recording with a duration of hours minute second in good quality, which was uploaded by the user Code with Vikram 04 December 2022, share the link with friends and acquaintances, this video has already been watched 1,194 times on youtube and it was liked by 26 viewers. Enjoy your viewing!