[PR #8136] [MERGED] fix(captcha): add $ERROR_CODES #24670

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8136
Author: @marcellosso
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @himself65

Base: canaryHead: fix/captcha-plugin-error-codes-not-exported


📝 Commits (1)

  • 8431cf8 fix(captcha): add $ERROR_CODES to expose them

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

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

📄 Description

Currently captcha has custom error messages that are not exposed in the lib due to it missing $ERROR_CODES


Summary by cubic

Expose captcha error codes by adding $ERROR_CODES to the captcha plugin. This fixes the missing export so clients can read and handle consistent error codes from the library.

Written for commit 8431cf813a. Summary will update on new commits.


🔄 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/8136 **Author:** [@marcellosso](https://github.com/marcellosso) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/captcha-plugin-error-codes-not-exported` --- ### 📝 Commits (1) - [`8431cf8`](https://github.com/better-auth/better-auth/commit/8431cf813a6260ad42d728a83d95cc96f0fb4ed0) fix(captcha): add $ERROR_CODES to expose them ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/captcha/index.ts` (+1 -0) </details> ### 📄 Description Currently captcha has custom error messages that are not exposed in the lib due to it missing `$ERROR_CODES` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Expose captcha error codes by adding $ERROR_CODES to the captcha plugin. This fixes the missing export so clients can read and handle consistent error codes from the library. <sup>Written for commit 8431cf813a6260ad42d728a83d95cc96f0fb4ed0. Summary will update on new commits.</sup> <!-- 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 22:30:21 -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#24670