2.0.0 • Published 2 months ago

@boywithkeyboard/turnstile v2.0.0

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

turnstile

!IMPORTANT
Please read this article to learn more.

Setup

Deno

import { turnstile } from 'https://esm.sh/@boywithkeyboard/turnstile'

Node.js

npm i @boywithkeyboard/turnstile
import { turnstile } from '@boywithkeyboard/turnstile'

Usage

async function handleRequest(req) {
  const body = await req.formData()

  const result = await turnstile.verify({
    secret: '...',
    response: body.get('cf-turnstile-response'),
    ip: req.headers.get('cf-connecting-ip')
  })
}
2.0.0

2 months ago

1.0.1

7 months ago

1.0.0

7 months ago