Skip to content

Modified version of node-hcaptcha to work with Cloudflare Turnstile

Notifications You must be signed in to change notification settings

maamokun/node-cfturnstile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-cfturnstile

Modified version of node-hcaptcha to work with Cloudflare Turnstile (WORK IN PROGRESS)

Install

npm install --save cfturnstile

Usage

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

const secret = 'my Turnstile secret from the Cloudflare dashboard';
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);
  
  h

About

Modified version of node-hcaptcha to work with Cloudflare Turnstile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published