Blog ·

Sign-up says "captcha protection: request disallowed"? Fix your Supabase CAPTCHA setup

You built your app with Lovable, Bolt, Cursor or Replit on a Supabase project. Bots started creating fake accounts, so you switched on CAPTCHA protection in Supabase. Now a new visitor fills in the sign-up form, clicks the button, and nothing useful happens. If your app shows the raw error, it says something like captcha protection: request disallowed (no captcha_token found). People who were already logged in may not notice anything, so you can go days without knowing.

The short answer

When CAPTCHA protection is on, Supabase Auth checks a CAPTCHA token on sign-up, password sign-in, magic link and one-time code sign-in, password reset and resend requests. If the request has no token, Supabase refuses it with HTTP 400 and the error code captcha_failed. The supabase-js client only sends a token when your code passes options.captchaToken. So switching the setting on without adding a CAPTCHA widget to your forms blocks every new sign-up and every password login.

Refreshing an existing session does not need a token, which is why people who were already signed in keep working. Requests made with your service role key also skip the check, so a test script on your server can pass while real visitors in a browser fail.

Supabase supports two providers: hCaptcha and Cloudflare Turnstile.

Find out which failure you have

Open your live site in a private window, open the browser's developer tools on the Network tab, and try to sign up. Click the request to /auth/v1/signup (for login it is /auth/v1/token, for a password reset /auth/v1/recover) and read the response.

  • captcha protection: request disallowed (no captcha_token found): your app is not sending a token at all. The widget is missing, or the token is not passed to the Supabase call.
  • captcha protection: request disallowed (timeout-or-duplicate) with Turnstile: the token was already used or is older than five minutes. Cloudflare's docs say each Turnstile token is valid for 300 seconds and can only be validated once.
  • already-seen-response or expired-input-response in the brackets with hCaptcha: the same problem on hCaptcha, a reused token or an expired one (hCaptcha lists 120 seconds as the default).
  • invalid-input-secret (Turnstile) or sitekey-secret-mismatch (hCaptcha): the secret key saved in Supabase is wrong, or it does not belong to the site key your widget uses.
  • captcha verification process failed with HTTP 500: Supabase could not complete the check with the provider. Try again; if it keeps happening, check which provider is selected in Supabase and that its secret key is saved.
  • No request at all, and the widget shows an error code such as 110200: with Turnstile, that code means the domain is not authorized. Your live domain is missing from the widget's hostname list.

Fix it in five steps

1. Decide whether CAPTCHA should be on right now

In the Supabase Dashboard, the Enable CAPTCHA protection toggle is under Bot and Abuse Protection in your project's Authentication settings. If your live app has no CAPTCHA widget yet, turning the toggle off makes sign-up and login work again straight away while you build the widget. Then come back and turn it on in step 5.

Lovable's docs do not describe a CAPTCHA setting for Lovable Cloud (its built-in backend), so this guide is for apps on your own Supabase project, where the toggle lives.

2. Add the widget and pass its token to every Auth call

Each form that talks to Supabase Auth needs a token: sign-up, login, magic link or code, password reset and resend. Supabase's guide stores the token from the widget callback (onVerify for hCaptcha, onSuccess for the Turnstile React component) and passes it like this:

await supabase.auth.signUp({
  email,
  password,
  options: { captchaToken },
})

Login takes the same option (signInWithPassword({ email, password, options: { captchaToken } })), and so does a reset (resetPasswordForEmail(email, { captchaToken })). A form that is missing either the widget or the option will fail with no captcha_token found.

3. Get a fresh token for every attempt

Tokens work once. Supabase's hCaptcha example calls resetCaptcha() on the widget after the sign-up call, and Cloudflare's docs say to refresh a Turnstile widget with turnstile.reset when a token has expired. Without a reset, a visitor who mistypes their password and tries again sends a used token and gets timeout-or-duplicate or already-seen-response. Keeping the submit button disabled until the widget has produced a token also stops empty submissions.

4. Check the keys and your live domain

The site key goes in the widget in your app. It is public. The secret key goes only into Supabase, in the CAPTCHA setting, and never into your app's code. Both must come from the same hCaptcha site or Turnstile widget. For Turnstile, open the widget in the Cloudflare dashboard, go to Settings, then Hostname Management, and make sure your live domain is listed (a plain name such as example.com, no https://; adding a root domain also covers its subdomains). For local testing, Supabase's guide says to add localhost to the Turnstile allowlist, or to use something like ngrok or a hosts file entry for hCaptcha.

5. Ship the widget first, then switch protection on, then test like a new visitor

While CAPTCHA protection is off, Supabase ignores the token, so it is safe to deploy the version of your app that sends one before you turn the toggle on. After deploying, switch protection on and test on your live domain in a private window: sign up with a new email, log in, and request a password reset. In the Network tab, none of those requests should come back with captcha_failed.

Paste this into your AI tool

> My app uses Supabase Auth with CAPTCHA protection turned on, and sign-up or login fails with "captcha protection: request disallowed". Please add a [hCaptcha or Cloudflare Turnstile] widget to every form that calls Supabase Auth (sign-up, login, magic link or code, password reset, resend), store the token from the widget callback, pass it as options.captchaToken to signUp, signInWithPassword, signInWithOtp and resend, and as captchaToken in the options of resetPasswordForEmail. Reset the widget after every Auth call so each attempt gets a fresh token, and keep the submit button disabled until there is a token. Read the site key from an environment variable. Do not put the CAPTCHA secret key anywhere in the app code. Then tell me which files you changed and how to test sign-up, login and password reset on my live site.

Catch it before your users do

A break like this is easy to miss because you are already logged in on your own browser. Scheduled testing from FlowCanary is launching by 30 November 2026. Once it is live, it will test the flows a new visitor can do in your app, such as sign-up and checkout, in a real browser on a schedule, with logged-in flows on Pro, and tell you in plain English when one breaks, with a fix prompt for Lovable, Bolt, Cursor or Replit. Until then, the free check works today: paste your live URL and it opens the page in a real browser and reports JavaScript errors, failed requests and blank pages.

Run the free checker