Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: update captcha docs (#20679)

Joel Lee3ac761143e18
diff --git a/apps/docs/pages/guides/auth/auth-captcha.mdx b/apps/docs/pages/guides/auth/auth-captcha.mdx
index 9c975f984b8..a61bf41c38c 100644
--- a/apps/docs/pages/guides/auth/auth-captcha.mdx
+++ b/apps/docs/pages/guides/auth/auth-captcha.mdx
@@ -52,11 +52,9 @@ In the Settings page, look for the **Sitekey** section and copy the key.
## Enable Captcha protection for your Supabase project
-Navigate to the **[Auth](https://supabase.com/dashboard/project/_/settings/auth)** section of your Project Settings in the Supabase Dashboard and find the **Enable Captcha protection** toggle under the **Security and Protection** section.
+Navigate to the **[Auth](https://supabase.com/dashboard/project/_/settings/auth)** section of your Project Settings in the Supabase Dashboard and find the **Enable Captcha protection** toggle under Settings > Authentication > Bot and Abuse Protection > Enable Captcha protection.
-![supabase_auth_general_settings.png](/docs/img/guides/auth-captcha/supabase_auth_general_settings.png)
-
-Enter your Captcha **Secret key** and click **Save**.
+Select your CAPTCHA provider from the dropdown, enter your Captcha **Secret key**, and click **Save**.
## Add the Captcha frontend component
@@ -147,7 +145,7 @@ In order to test that this works locally we will need to use something like [ngr
<TabPanel id="turnstile-2" label="Turnstile">
- The frontend requires some changes to provide the captcha on-screen for the user. This example uses React and the Turnstile React component, but Turnstile can be used with any JavaScript framework.
+The frontend requires some changes to provide the captcha on-screen for the user. Turnstile can be used with any JavaScript framework but we'll use React and the Turnstile React component for this example.
Install @marsidev/react-turnstile in your project as a dependency.
@@ -169,7 +167,7 @@ const [captchaToken, setCaptchaToken] = useState()
Now lets add the Cloudflare Turnstile component to the JSX section of our code:
-```html
+```jsx
<Turnstile />
```
@@ -182,7 +180,7 @@ We will pass it the sitekey we copied from the Cloudflare website as a property
/>
```
-We can now use the captchaToken we receive in our Supabase `signUp` function.
+We can now use the `captchaToken` we receive in our Supabase `signUp` function.
```jsx
await supabase.auth.signUp({
diff --git a/apps/docs/public/img/guides/auth-captcha/supabase_auth_general_settings.png b/apps/docs/public/img/guides/auth-captcha/supabase_auth_general_settings.png
deleted file mode 100644
index 9a2a2a65e34..00000000000
Binary files a/apps/docs/public/img/guides/auth-captcha/supabase_auth_general_settings.png and /dev/null differ