Files
2025-05-28 09:55:51 +08:00
..
2025-05-28 09:55:51 +08:00
2025-05-28 09:55:51 +08:00

Cloudflare Turnstile

Turnstile is Cloudflare's CAPTCHA alternative: https://developers.cloudflare.com/turnstile/get-started/

Watch the Video Tutorial

video tutorial

Setup

Deploy the server-side validation Edge Functions

supabase functions deploy cloudflare-turnstile
supabase secrets set CLOUDFLARE_TURNSTILE_SECRET_KEY=your_secret_key

Invoke the function from your site

const { data, error } = await supabase.functions.invoke('cloudflare-turnstile', {
  body: { token },
})