Socket
Socket
Sign inDemoInstall

express-turnstile

Package Overview
Dependencies
67
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "express-turnstile",
"version": "1.0.7",
"version": "1.0.8",
"description": "Express middleware for CloudFlare Turnstile Captcha",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# express-turnstile
Validate your Turnstile token using a Express middleware.
Validate your CloudFlare Turnstile token using a Express middleware.
## Usage
```

@@ -17,5 +19,9 @@ yarn add express-turnstile

app.post('/verify', turnstile.validate(process.env.TURNSTILE_SECRET), (req, res) => {
res.json({message: 'verified!'});
});
app.post(
"/verify",
turnstile.validate(process.env.TURNSTILE_SECRET),
(req, res) => {
res.json({ message: "verified!" });
}
);

@@ -25,3 +31,2 @@ app.listen(3000, () => {

});
```

@@ -48,2 +53,2 @@

});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc