Socket
Book a DemoInstallSign in
Socket

verify-hcaptcha

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verify-hcaptcha

A fully typed library to verify hCaptcha.com tokens submitted by users when solving captcha challenges

3.1.0
latest
Source
npmnpm
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

✅ verify-hcaptcha

Build status Coverage jsDocs.io Language npm License

A fully typed library to verify hCaptcha.com tokens submitted by users when solving captcha challenges.

[!WARNING] This is an unofficial library; we are not affiliated with hCaptcha.com.

Useful resources

Install

[!NOTE] Make sure you have Zod v4 installed in your application to use this package.

Using npm:

npm add zod verify-hcaptcha

Using yarn:

yarn add zod verify-hcaptcha

Using pnpm:

pnpm add zod verify-hcaptcha

Using bun:

bun add zod verify-hcaptcha

Usage Examples

Verify a token submitted by a user:

import { verifyHcaptchaToken } from "verify-hcaptcha";

const result = await verifyHcaptchaToken({
	token: "USER-SUBMITTED-RESPONSE-TOKEN",
	secretKey: "YOUR-SECRET-KEY",
	siteKey: "YOUR-SITE-KEY",
});

if (result.success) {
	console.log("User is human");
} else {
	console.log("User is robot");
}

License

MIT

Copyright (c) 2025 Edoardo Scibona

See LICENSE file.

Keywords

hcaptcha

FAQs

Package last updated on 27 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.