Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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