Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Documentation: Supabase edge function integration #97

Open
2 tasks done
GideonPotok opened this issue Nov 29, 2024 · 1 comment
Open
2 tasks done

📝 Documentation: Supabase edge function integration #97

GideonPotok opened this issue Nov 29, 2024 · 1 comment

Comments

@GideonPotok
Copy link

GideonPotok commented Nov 29, 2024

Bug Report Checklist

Overview

Hi, and thank you for maintaining this awesome library! I’d like to request an enhancement to make it easier to integrate react-turnstile with Supabase Edge Functions for handling Cloudflare Turnstile validation.

Background

Supabase provides an example Edge Function to handle Cloudflare Turnstile. However, it’s not immediately clear how to make react-turnstile rely on this Edge Function for verification. Adding documentation or a utility to streamline this integration would significantly improve developer experience.

Feature Request

Documentation Enhancement

Provide a step-by-step guide in the README or wiki explaining how to:
Integrate the react-turnstile component with the Supabase Edge Function.
Call the Supabase Edge Function to validate the Turnstile token on the server-side.

Optional Utility or Preset

Add a configuration or utility within react-turnstile that simplifies posting the token directly to a Supabase Edge Function endpoint for validation.

Use Case

This feature will help developers:
Use react-turnstile seamlessly in applications that use Supabase.
Reduce boilerplate setup for integrating Turnstile with Edge Functions.

Additional Info

No response

@marsidev
Copy link
Owner

Hello, thanks for your suggestions.

Extending the docs would be a nice addition! As I'm not a Supabase user, it's better if someone with the experience connecting those add the docs. Feel free to update the docs from here. You probably may need to check the docs of docs.page

Regarding the utility/preset, I don't like that much adding something that specific. I prefer to keep the library as much generic as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants