(Captcha plugin) Extend providers support to Google Recaptcha v3, reCAPTCHA Enterprise and hCaptcha #718

Closed
opened 2026-03-13 08:01:31 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @0scrm on GitHub (Feb 21, 2025).

Originally assigned to: @0scrm on GitHub.

Is this suited for github?

  • Yes, this is suited for github

The Captcha plugin currently support only Recaptcha V2 and Cloudflare Turnstile. I would like to extend the list of providers.

Describe the solution you'd like

Following my work on the Captcha plugin, I think we should support:

hCaptcha has a very similar response to V2 and Turnstile. V3 and Enterprise handle verification differently from v2: with a score (0.0 - 1.0) instead of a success (Boolean).

Actions:

  1. Add these three to the list of providers and create new verify-handlers for them.
  2. Add an optional (and discriminated type) minimumScore (default recommended by Google is 0.5) to the plugin config object.
  3. Update the plugin documentation

Describe alternatives you've considered

Unless these feature is not deemed necessary but the core maintainers, I don't see any reason to not implement this update.

Additional context

I will be happy to pick this one up in the coming days :) @Bekacru feel free to assign it to me!

Originally created by @0scrm on GitHub (Feb 21, 2025). Originally assigned to: @0scrm on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. The Captcha plugin currently support only Recaptcha V2 and Cloudflare Turnstile. I would like to extend the list of providers. ### Describe the solution you'd like Following my work on the Captcha plugin, I think we should support: - Google reCAPTCHA v3: [documentation](https://developers.google.com/recaptcha/docs/v3#site_verify_response) - ReCAPTCHA Enterprise: [documentation](https://cloud.google.com/recaptcha/docs/interpret-assessment-website) - hCaptcha: [documentation](https://docs.hcaptcha.com/) **hCaptcha has a very similar response to V2 and Turnstile. V3 and Enterprise handle verification differently from v2: with a `score` (0.0 - 1.0) instead of a `success` (Boolean).** Actions: 1. Add these three to the list of providers and create new verify-handlers for them. 2. Add an optional (and discriminated type) `minimumScore` (default recommended by Google is `0.5`) to the plugin config object. 3. Update the plugin documentation ### Describe alternatives you've considered Unless these feature is not deemed necessary but the core maintainers, I don't see any reason to not implement this update. ### Additional context I will be happy to pick this one up in the coming days :) @Bekacru feel free to assign it to me!
GiteaMirror added the stale label 2026-03-13 08:01:31 -05:00
Author
Owner

@Bekacru commented on GitHub (Feb 21, 2025):

Hey yeah, this sounds great! please go for it.

@Bekacru commented on GitHub (Feb 21, 2025): Hey yeah, this sounds great! please go for it.
Author
Owner

@dosubot[bot] commented on GitHub (Jun 13, 2025):

Hi, @0scrm. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Proposal to extend Captcha plugin to support Google reCAPTCHA v3, ReCAPTCHA Enterprise, and hCaptcha.
  • Suggestion includes adding new verification handlers and a minimumScore configuration.
  • You expressed willingness to work on the update and requested assignment.
  • Positive feedback from @Bekacru, encouraging you to proceed with the implementation.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jun 13, 2025): Hi, @0scrm. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Proposal to extend Captcha plugin to support Google reCAPTCHA v3, ReCAPTCHA Enterprise, and hCaptcha. - Suggestion includes adding new verification handlers and a `minimumScore` configuration. - You expressed willingness to work on the update and requested assignment. - Positive feedback from @Bekacru, encouraging you to proceed with the implementation. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If no updates are provided, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#718