Created
May 30, 2021 16:21
-
-
Save bibhuticoder/67e9855f39d1711875741a0015ff81bd 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
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