@radzor/captcha-verify
Server-side CAPTCHA verification supporting Cloudflare Turnstile, Google reCAPTCHA, and hCaptcha. Validates tokens from client-side widgets.
Authenticationv0.1.0typescriptpythonServercaptchaturnstilerecaptchahcaptchasecurityverificationby Radzor
Install
View source on GitHub →$npx radzor@latest add captcha-verify
⚠ Constraints: Server-side only. Requires secret key from the CAPTCHA provider. Tokens are single-use.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| provider* | 'turnstile' | 'recaptcha' | 'hcaptcha' | — | CAPTCHA provider. |
| secretKey* | string | — | Server-side secret key from the provider.TURNSTILE_SECRET_KEY |
| scoreThreshold | number | 0.5 | Minimum score to pass (reCAPTCHA v3 only, 0.0-1.0). |
provider*'turnstile' | 'recaptcha' | 'hcaptcha'
CAPTCHA provider.
secretKey*string
Server-side secret key from the provider.
TURNSTILE_SECRET_KEY