[PR #4944] [MERGED] feat(captcha): add support for CaptchaFox #22575

Closed
opened 2026-04-15 21:08:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4944
Author: @tgrassl
Created: 9/27/2025
Status: Merged
Merged: 9/30/2025
Merged by: @himself65

Base: canaryHead: feat/captcha-plugin-captchafox-provider


📝 Commits (1)

  • 8cac389 feat(captcha): add support for CaptchaFox

📊 Changes

7 files changed (+154 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/captcha.mdx (+4 -2)
📝 packages/better-auth/src/plugins/captcha/captcha.test.ts (+70 -0)
📝 packages/better-auth/src/plugins/captcha/constants.ts (+2 -0)
📝 packages/better-auth/src/plugins/captcha/index.ts (+7 -0)
📝 packages/better-auth/src/plugins/captcha/types.ts (+7 -1)
packages/better-auth/src/plugins/captcha/verify-handlers/captchafox.ts (+63 -0)
📝 packages/better-auth/src/plugins/captcha/verify-handlers/index.ts (+1 -0)

📄 Description

Implements #4943

Changes:

  • Added a new captchafox provider
  • Updated the plugin documentation

Summary by cubic

Added CaptchaFox support to the Captcha plugin so apps can use CaptchaFox for bot protection. Addresses #4943 with server-side verification, docs, and tests.

  • New Features
    • Added provider "captchafox" and siteverify endpoint mapping.
    • Implemented server-side verify handler (supports optional siteKey and remote IP; returns 403 on invalid tokens, 500 if siteverify fails).
    • Extended types with CaptchaFoxOptions and wired provider in plugin index.
    • Updated docs: provider list, usage example, client-side resources, and siteKey option note.
    • Added tests for success, service unavailable, and validation failure cases.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4944 **Author:** [@tgrassl](https://github.com/tgrassl) **Created:** 9/27/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/captcha-plugin-captchafox-provider` --- ### 📝 Commits (1) - [`8cac389`](https://github.com/better-auth/better-auth/commit/8cac389edfafc2202cad9ca5f3abc2919fdcb0b5) feat(captcha): add support for CaptchaFox ### 📊 Changes **7 files changed** (+154 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/captcha.mdx` (+4 -2) 📝 `packages/better-auth/src/plugins/captcha/captcha.test.ts` (+70 -0) 📝 `packages/better-auth/src/plugins/captcha/constants.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/captcha/index.ts` (+7 -0) 📝 `packages/better-auth/src/plugins/captcha/types.ts` (+7 -1) ➕ `packages/better-auth/src/plugins/captcha/verify-handlers/captchafox.ts` (+63 -0) 📝 `packages/better-auth/src/plugins/captcha/verify-handlers/index.ts` (+1 -0) </details> ### 📄 Description Implements #4943 Changes: - Added a new captchafox provider - Updated the plugin documentation <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added CaptchaFox support to the Captcha plugin so apps can use CaptchaFox for bot protection. Addresses #4943 with server-side verification, docs, and tests. - **New Features** - Added provider "captchafox" and siteverify endpoint mapping. - Implemented server-side verify handler (supports optional siteKey and remote IP; returns 403 on invalid tokens, 500 if siteverify fails). - Extended types with CaptchaFoxOptions and wired provider in plugin index. - Updated docs: provider list, usage example, client-side resources, and siteKey option note. - Added tests for success, service unavailable, and validation failure cases. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:08:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22575