send otp using node js live zoom class recording

Veröffentlicht am: 04 Dezember 2022
auf dem Kanal: Code with Vikram
1,194
26

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  


Auf dieser Seite können Sie das Online-Video send otp using node js live zoom class recording mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code with Vikram 04 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,194 Mal angesehen und es wurde von 26 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!