Guide7 min read

Lovable Cloud CAPTCHA: Protect the Auth Endpoint

By

A signup form can verify Turnstile while another route still creates accounts. Understand the reported Lovable Cloud issue, native Supabase protection, and what to verify.

  • Lovable Cloud
  • Supabase Auth
  • Cloudflare Turnstile
  • CAPTCHA
  • Signup Security

The Report: CAPTCHA Passed in the App, but Signup Had Another Route

A community report supplied to us describes a frustrating situation: a Lovable Cloud application checked Cloudflare Turnstile on its server, but direct calls to the underlying Supabase Auth signup endpoint reportedly created unconfirmed users and sent confirmation emails without going through that check. The author said they could enable native Auth CAPTCHA in a separate Supabase project they controlled, but could not access the corresponding setting in their managed Lovable backend.

We have not independently reproduced that incident, reviewed its logs, or verified the support escalation described in the report. No original thread URL was supplied. This article uses the account as a case study in where protection must be enforced, not as evidence that every Lovable Cloud project currently has the same limitation.

Documentation reviewed on November 25, 2026 confirms that Supabase supports native CAPTCHA protection and that Lovable Cloud uses Supabase's open-source foundation. We could not confirm from the public documentation reviewed whether a customer-facing Auth CAPTCHA control is currently available for every Lovable Cloud configuration. Confirm the options for your specific project with support.

Why Server-Side CAPTCHA Can Still Leave a Gap

Server-side verification protects requests that actually pass through that server code. If an independent public signup endpoint can perform the same operation without that verification, checking the application route does not cover the whole account-creation flow.

Two routes to the same operation

Application route: Signup page → application server checks Turnstile → account creation. This route may be protected correctly.
Direct Auth route: Request reaches the Auth service directly → account creation. This route needs its own enforced protection if it remains publicly available.

In the reported case, the public anon key was used to reach the Auth endpoint. Treat a client key designed for browser use as public. Moving it out of an obvious source file or hiding the signup button does not establish an anti-abuse boundary. Private admin keys are different and must remain secret.

The reported impact was signup and email abuse. It does not, by itself, demonstrate account takeover or access to another user's private data. Unconfirmed accounts can still matter: they may trigger unwanted messages, consume quotas, and distort onboarding metrics.

What Native Supabase CAPTCHA Adds

In a Supabase project you control, the documented setup enables CAPTCHA in Authentication settings under Bot and Abuse Protection, selects a provider, and saves its secret key. The application then supplies the challenge token to Auth. Supabase's JavaScript example passes it through options.captchaToken in signUp.

The important property is enforcement by the service performing the protected Auth operation. The reporter described a captcha_failed response when a direct request omitted the token in their separately controlled project. Treat that response as their reported test result; verify the current behavior and side effects in your own authorized environment.

Avoid validating one token twice When adding native Auth verification to an existing custom check, review the token flow. Do not independently consume the same token in a wrapper and then assume the Auth service can validate it again. Choose a supported flow and test legitimate signup as well as rejection cases.

Cloudflare requires server-side token validation. Its documentation describes five-minute expiry and tokens intended for single use, with reuse detection subject to network convergence. Handle expiration and retries, and do not treat token validation as a substitute for deduplicating sensitive operations.

How to Verify the Protection Without Creating Email Abuse

Arrange a limited test in a project you own or are authorized to assess. Use test mailboxes you control and agree on a small request budget. There is no need to send confirmation messages to uninvolved people or run a bulk signup campaign to establish the issue.

  • Test a legitimate signup with a fresh challenge token. Confirm that the intended user flow still works.
  • Test a direct request to the relevant Auth operation with the token missing. It should not create a user or trigger the protected email side effect.
  • Test an invalid or expired token, then check both the response and backend records.
  • Review replay handling with the provider's documented behavior in mind. Confirm the application cannot duplicate valuable side effects.
  • Review password recovery, resends, and other email-triggering operations separately; do not assume a signup result covers them.
  • Record timestamps, configuration, request IDs, status or error codes, user creation, and mail events without publishing secrets or recipient data.

A visible error alone is not enough evidence if the operation already created a record or queued an email. Conversely, a generic response may deliberately hide account existence. Verify observable side effects with the responsible operator.

What to Do When the Managed Platform Controls the Setting

Ask support which component enforces bot protection, whether they can enable native Auth CAPTCHA for your project, and how you can verify the change. A managed service can expose a simple interface while still configuring the underlying control. A toggle with provider credentials, validation, and a test result would be a reasonable product request, not a feature we can promise is available.

A focused support request

Our application verifies Turnstile, but an authorized test suggests the direct Auth signup route can still create an unconfirmed user or send an email without a valid challenge. Please confirm the current Auth CAPTCHA configuration for our project, whether native enforcement can be enabled, and which email-triggering operations it covers. We can provide timestamps and redacted evidence through your secure support channel. If the setting is unavailable, please identify supported temporary controls and how we can verify their effect at the Auth endpoint.

While investigating, ask about provider-enforced rate limits, restrictions on new registrations, or a supported invitation flow. If open signup must be paused, confirm it is disabled at the Auth service, not merely removed from the page. Plan for how legitimate users will join during that period.

Review Supabase's Auth rate-limit guidance with the operator, but do not assume you can change every underlying setting through Lovable Cloud. Limits reduce volume; they do not prove that CAPTCHA is enforced. Monitor signup attempts and outgoing mail, and confirm who can intervene if abuse continues.

Changes That Do Not Close an Open Direct Route

❌ Adding more checks only to the signup page

✓ Verify protection at every publicly reachable operation that can create users or send protected emails.

❌ Relying on CORS or a hidden public key

✓ Neither establishes authorization or bot protection for arbitrary direct HTTP requests.

❌ Putting a firewall in front of only the website

✓ Confirm whether the independent Auth origin is actually covered. A separate reachable service can bypass that website's controls.

❌ Changing SMTP providers and calling it fixed

✓ Email transport changes do not enforce a missing challenge at signup. Verify the account-creation and email-triggering operations.

❌ Assuming a proxy forces all callers through it

✓ A proxy only closes the gap if the original route cannot independently perform the operation without equivalent enforcement.

Migration is an architectural decision, not a reflex. If support cannot provide controls your product requires, compare a planned move with the risk and operating cost of staying. Include accounts, sessions, data, files, and rollback in that assessment. Our backend alternatives guide explains why changing a database URL alone is insufficient.

For a wider assessment, use our application security checklist. If you need help reviewing the implementation, discuss the scope with Arahita Labs.

Frequently Asked Questions

Can signup CAPTCHA be bypassed even if my server verifies it?

Yes, if another publicly reachable route performs the operation without equivalent enforcement. The server check protects the requests passing through it; verify the underlying Auth route too.

Does Supabase support Cloudflare Turnstile natively?

Yes. Supabase documents CAPTCHA configuration in Auth settings and passing the token to its Auth SDK. Test the protected operations and legitimate flows after configuration.

Is Lovable Cloud confirmed to lack an Auth CAPTCHA setting?

The community account supplied for this article reported that limitation. We did not independently reproduce the incident or verify current availability across projects. Ask support about your specific configuration and verify enforcement directly.

Will a frontend firewall or CORS setting fix the issue?

Not if a separate Auth origin remains directly reachable without the required protection. The control must cover the operation at the service or an unavoidable enforcement boundary.

Free 30-Minute Call

Ready to bring your idea to life?

Share your vision with us. We'll outline a clear roadmap to build your app — no technical jargon, just practical next steps.

Book Your Free Call
Responds within 24h