You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
Hi,
That sounds good to me. I’m not aware of anyone currently working on this.
Adding optional captcha token support to SignUp, aligned with the JS client
behavior and wired through to the auth API, seems like a sensible and
consistent approach. As long as it’s additive and non-breaking, I don’t see
any issues.
Feel free to pick it up. If you’d like to sanity-check the proposed API
shape before implementing, you can share it in the issue or PR.
Thanks for contributing!
Best regards,
Aslam
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?
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!
Activity
mazensakr05 commentedon Jan 6, 2026
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?
aslamsahdra commentedon Jan 7, 2026
mazensakr05 commentedon Jan 7, 2026
I’m planning to add a
CaptchaTokenproperty toSignUpOptions, and send it as<fieldName>in the auth request, matching the JS client. Does that API shape look good?mazensakr05 commentedon Jan 7, 2026
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!