An open API service indexing awesome lists of open source software.

https://github.com/guerrerocarlos/recaptcha-check

Check the token provided by the invisible reCAPTCHA (server-side)
https://github.com/guerrerocarlos/recaptcha-check

Last synced: 3 months ago
JSON representation

Check the token provided by the invisible reCAPTCHA (server-side)

Awesome Lists containing this project

README

        

reCAPTCHA check
===

Checks the token included in the form when using "invisible reCAPTCHA" as defined in [reCAPTCHA documentation](https://developers.google.com/recaptcha/)

This module is to be used server-side

USE
==

```javascript
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](https://www.google.com/recaptcha/admin)