recaptcha-check

v1.0.4
Check reCAPTCHA token with google (server side)
recaptcha verify google check

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

npm i recaptcha-check

Metadata

  • ISC
  • Whatever
  • Carlos Guerrero
  • released 3/30/2018

Downloads

Maintainers