[PR #3116] [CLOSED] feat(captcha): allow customizable captcha header keys in BaseCaptchaOptions #30257

Closed
opened 2026-04-17 21:23:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3116
Author: @xTudoS
Created: 6/21/2025
Status: ❌ Closed

Base: main ← Head: feat/allow-customizable-captcha-header


📝 Commits (3)

  • 206d100 feat: allow customizable captcha header keys in BaseCaptchaOptions
  • 90c6008 fix: handle empty strings in custom header keys
  • c86c79c chore: Refactor code to fix lint

📊 Changes

2 files changed (+16 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/captcha/index.ts (+14 -2)
📝 packages/better-auth/src/plugins/captcha/types.ts (+2 -0)

📄 Description

feat: allow customizable captcha header keys in BaseCaptchaOptions

  • Added optional properties captchaResponseHeader and remoteUserIPHeader to BaseCaptchaOptions to specify custom header keys.
  • Fallback to default headers (x-captcha-response, x-captcha-user-remote-ip) if not specified.

🔄 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/3116 **Author:** [@xTudoS](https://github.com/xTudoS) **Created:** 6/21/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/allow-customizable-captcha-header` --- ### 📝 Commits (3) - [`206d100`](https://github.com/better-auth/better-auth/commit/206d100a3779ade3680f9bd4f99d61b4889c0cd9) feat: allow customizable captcha header keys in BaseCaptchaOptions - [`90c6008`](https://github.com/better-auth/better-auth/commit/90c6008cfa903333419f3b5df19effc79f05916e) fix: handle empty strings in custom header keys - [`c86c79c`](https://github.com/better-auth/better-auth/commit/c86c79c135b3db5029ff3e5c1138afe8645b1cee) chore: Refactor code to fix lint ### 📊 Changes **2 files changed** (+16 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/captcha/index.ts` (+14 -2) 📝 `packages/better-auth/src/plugins/captcha/types.ts` (+2 -0) </details> ### 📄 Description feat: allow customizable captcha header keys in BaseCaptchaOptions - Added optional properties `captchaResponseHeader` and `remoteUserIPHeader` to `BaseCaptchaOptions` to specify custom header keys. - Fallback to default headers (`x-captcha-response`, `x-captcha-user-remote-ip`) if not specified. --- <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-17 21:23:57 -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#30257