Skip to content

About

Verify hCaptcha token validity

Resources

Stars

154 stars

Watchers

19 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

hcaptcha

Verify hCaptcha token validity; simply w/ no dependencies.

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) => {
    if (data.success === true) {
      console.log('success!', data);
    } else {
      console.log('verification failed');
    }
  })
  .catch(console.error);

About

Verify hCaptcha token validity

Resources

Stars

154 stars

Watchers

19 watching

Forks

Releases

Packages

Used by

Contributors

Languages