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
En esta página del sitio puede ver el video en línea send otp using node js live zoom class recording de Duración hora minuto segunda en buena calidad , que subió el usuario Code with Vikram 04 diciembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,194 veces y le gustó 26 a los espectadores. Disfruta viendo!