Socket
Socket
Sign inDemoInstall

@netacea/captchafeedback

Package Overview
Dependencies
6
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @netacea/captchafeedback

CAPTCHA feedback module to send CAPTCHA results back to Netacea.


Version published
Weekly downloads
60
decreased by-58.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Netacea CAPTCHA Feedback

Netacea Header

npm   TypeScript

@netacea/captchafeedback is a package designed to add Netacea CAPTCHA feedback functionality to your NodeJS based origin server.

Installation

NPM

npm i @netacea/captchafeedback --save

Yarn

yarn add @netacea/captchafeedback

Usage

import Netacea from '@netacea/captchafeedback'
const netacea = new Netacea({
  apiKey: 'your-api-key',
  secretKey: 'your-secret-key'
})

const { cookies } = await netacea.updateCaptcha({
  clientIp: 'client-ip',            // Client's real IP address
  cookieHeader: 'cookie-header',    // Incoming cookie header value
  eventId: 'captcha-page-event-id', // X-Netacea-Event-ID received when captcha was served
  result: true,                     // Result from captcha
  userAgent: 'client-user-agent'    // Client's user-agent
})
// TODO: Add the returned cookies to the set-cookie header of the response, for example:
response.header('set-cookie', cookies)

FAQs

Last updated on 24 Apr 2024

Did you know?

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

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