Skip to content

Captcha support on SignUp method #213

@retr0grde

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions