0.2.4 • Published 2 years ago

@coryparsnipson/hcaptcha v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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);
0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.1

2 years ago