Created
May 30, 2021 16:25
-
-
Save bibhuticoder/073772217006b95c7419c5cc441901e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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