recaptcha-check

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i recaptcha-check

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • guerrerocarlos