Skip to content

Instantly share code, notes, and snippets.

@bibhuticoder
Created May 30, 2021 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bibhuticoder/67e9855f39d1711875741a0015ff81bd to your computer and use it in GitHub Desktop.
Save bibhuticoder/67e9855f39d1711875741a0015ff81bd to your computer and use it in GitHub Desktop.
const Vonage = require('@vonage/server-sdk');
const vonage = new Vonage({
apiKey: process.env.VONAGE_KEY,
apiSecret: process.env.VONAGE_SECRET
});
export const requestCode = (phoneNo, callback) => {
//...
});
export const verifyOtp = (request_id, code, callback) => {
//...
});
export const cancelOtp = (request_id, callback) => {
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment