recaptcha-check
v1.0.4
Published
Check reCAPTCHA token with google (server side)
Downloads
6
Maintainers
Readme
reCAPTCHA check
Checks the token included in the form when using "invisible reCAPTCHA" as defined in reCAPTCHA documentation
This module is to be used server-side
USE
var checkCaptcha = require('recaptcha-check')('your-private-token-here')
checkCaptcha('token-from-form', 'user-remote-ip').then(function success(){
console.log('success token is valid!')
},
function error(){
console.log('error :(')
})
get your private token from the reCAPTCHA admin