rec

recaptchavalidator

A simple validator for Google's reCaptcha

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

190.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

reCaptchaValidator

A very simple syncronous function for testing a reCaptcha response.

Installation

npm i --save recaptchavalidator

Usage

const reCaptchaValidator = require("recaptchavalidator"),
      secret = "your google reCaptcha secret";

if (reCaptchaValidator(req.body['g-recaptcha-response'], secret)) {
    // success
}
else {
    // fail
}

Documentation

reCaptchaValidate(captchaResponse, secret)

Validate Google reCaptcha

Parameters

NameTypeDescription
captchaResponsestring'g-captcha-response'
secretstringyour Google reCaptcha secret string

Returns

boolean

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100