Verify hCaptcha token validity; simply w/ no dependencies.
npm install --save hcaptcha
const {verify} = require('hcaptcha');
const secret = 'my hcaptcha secret from hcaptcha.com';
const token = 'token from widget';
verify(secret, token)
.then((data) => console.log('success!', data))
.catch(console.error);