Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export const cancelOtp = (request_id, callback) => {
vonage.verify.control({
request_id: request_id,
cmd: 'cancel'
}, (err, result) => {
if (err) {
console.error("====cancel err", err);
callback(false);
} else {
console.log(result);
console.log("====cancel success", result);
callback(result);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment