Captcha support on SignUp method

Open
#213 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start with the SignUp and SignUpWithEmail entry points shown in the stack trace, then inspect SignUpOptions to see how signup request values are represented. The work is complete when callers can provide a captcha token through the SignUp flow and captcha-enabled signup succeeds; add or update coverage for that path.

Written by the indexing model from the issue text.

Description

feature

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

Dominant language
C#
Stars
701
Forks
106
Avg merge
16h 35m
Merged PRs (30d)
45

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/supabase-csharp

All issues in supabase/supabase-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.