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
Sur cette page du site, vous pouvez voir la vidéo en ligne send otp using node js live zoom class recording durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code with Vikram 04 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,194 fois et il a aimé 26 téléspectateurs. Bon visionnage!