Skip to content

Instantly share code, notes, and snippets.

@bibhuticoder
Created May 30, 2021 16:25
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/073772217006b95c7419c5cc441901e9 to your computer and use it in GitHub Desktop.
Save bibhuticoder/073772217006b95c7419c5cc441901e9 to your computer and use it in GitHub Desktop.
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