Skip to content

Captcha support on SignUp method #213

Closed

Description

@retr0grde

Feature request

Is your feature request related to a problem? Please describe.

I am developing a custom Sign Up flow for my frontend app that calls backend API to sign up user. At a certain point I call SignUp method from Supabase NuGet package. This works just fine when Captcha is not configured, but when I try to run it with Captcha enabled I get following error:

Supabase.Gotrue.Exceptions.GotrueException: {"code":500,"error_code":"unexpected_failure","msg":"captcha verification process failed","error_id":"99426df994c4441d-WAW"}
   at Supabase.Gotrue.Helpers.MakeRequest(HttpMethod method, String url, Object data, Dictionary`2 headers)
   at Supabase.Gotrue.Api.SignUpWithEmail(String email, String password, SignUpOptions options)
   at Supabase.Gotrue.Client.SignUp(SignUpType type, String identifier, String password, SignUpOptions options)
   at App.Services.SupabaseProviderService.CreateUser(String email, String password, Guid internalUserId, String captchaToken, CancellationToken cancellationToken)

I don't see any option of setting captchaToken like you can with the frontend library described here: Enable CAPTCHA Protection

Describe the solution you'd like

SignUp method to accept captcha tokens, just like the frontend library does.

Describe alternatives you've considered

I tried calling providing captcha as header Supabase APIs directly, but this completely defeats the purpose of using this package.

Additional context

Activity

  1. added
    feature
    on Oct 25, 2025
  2. mazensakr05 commented on Jan 6, 2026

    @mazensakr05

    Hi, I’d be interested in implementing this for the C# client.
    I can add support for passing a captcha token to SignUp (similar to the JS client) and wire it through to the auth API.
    Is anyone already working on this, or is it okay if I pick it up?

  3. aslamsahdra commented on Jan 7, 2026

    @aslamsahdra
  4. mazensakr05 commented on Jan 7, 2026

    @mazensakr05

    I’m planning to add a CaptchaToken property to SignUpOptions, and send it as <fieldName> in the auth request, matching the JS client. Does that API shape look good?

  5. mazensakr05 commented on Jan 7, 2026

    @mazensakr05

    Hi @aslamsahdra, I've implemented the captcha token support as discussed. I added an optional CaptchaToken property to SignUpOptions and wired it through to the auth API request as captcha_token, matching the JS client behavior.

    Implementation in PR #116. Let me know if any adjustments are needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions