Verify hCaptcha token validity
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

hcaptcha

Verify hCaptcha token validity.

Install

npm install --save hcaptcha

Usage

const {verify} = require('hcaptcha');

const secret = 'my hcaptcha secret from hcaptcha.com';
const token = 'token from widget';

verify(secret, token)
  .then((data) => console.log('success!', data))
  .catch(console.error);