blob: 50eb77e97c884c879cb2bd3ae75f028cd980f65b [file] [log] [blame]
import Axios from 'axios';
import qs from 'querystring';
const verifyTkn = async (req, res) => {
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;