New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@boywithkeyboard/turnstile

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boywithkeyboard/turnstile

A type-safe server-side validator for Turnstile, Cloudflare's free CAPTCHA solution.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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')
  })
}

Keywords

cloudflare

FAQs

Package last updated on 21 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts