blob: 7254126a53a78566efb5f6f0f2a2c2ade98dc7ca [file] [log] [blame]
import Axios from 'axios';
import qs from 'querystring';
const verifyTkn = async (req, res) => {
console.log("I")
const chk = await Axios.post('https://hcaptcha.com/siteverify', qs.stringify({
response: req.body.tkn,
secret: '0x19C699BFfce07b2a026121DE6702706BB2d51D6c',
sitekey: '85074411-fa13-4d9b-b901-53095c6d1fc6'
}))
return res.send({ success: chk.data.success });
}
export default verifyTkn;