Skip to content

Ill-tableflip-U/node-challenges-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hcaptcha

Verify hCaptcha/recaptcha/cf turnstile tokens

Install

npm install node-challenges-validation

Usage

const {recaptcha, hcaptcha, turnstile} = require('hcaptcha');

const recaptcha_secret = 'recaptcha secret';
const recaptcha_token = 'token obtained from captcha widget';

recaptcha(secret, token)
  .then((data) => {
    if (data.success === true) {
      console.log('success!', data);
    } else {
      console.log('verification failed');
    }
  })
  .catch(console.error);

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%