Skip to content
FirstUser

For builders shipping this week

"Anonymous sign-ins are disabled" when someone creates an account

Find out if a stranger can actually sign up — free. FirstUser opens your live URL in a fresh browser, types a new email and password into your sign-up form, logs in and tries checkout, then hands you a screenshot of the step that broke and a fix prompt. Run a free test.

FirstUser types into the fields like a person does. The phone-autofill case in check 5 is one you test by hand.

A visitor fills in your sign-up form on a Lovable, Bolt or Cursor app with Supabase, taps "Create account", and sees "Anonymous sign-ins are disabled" (in the console: AuthApiError: Anonymous sign-ins are disabled, HTTP 422, code anonymous_provider_disabled).

You never built anonymous sign-in, so the message makes no sense. It does once you see what Supabase received.

What the message really means

In the Supabase Auth server, the sign-up endpoint first looks at the email and phone in the request. If both are empty, it treats the request as an anonymous sign-in. If anonymous sign-ins are off in your project (the usual case), it answers "Anonymous sign-ins are disabled". The password is not even looked at yet.

So the message does not mean a setting is wrong. It means your form sent an empty email to supabase.auth.signUp(). Fix the form, not the dashboard.

Do not "fix" it by turning anonymous sign-ins on. Then the same broken form quietly creates anonymous users with no email instead of real accounts. Your visitor seems signed in, but can't log back in on another device, and you get no address.

5 checks, in order

1. Look at the request, not the screen

Open the live site, open DevTools → Network, submit the form and click the signup request. Look at the request body. If email is "" or missing, the rest of this page is your fix. If the email is there and you still get this error, you are calling a different endpoint (for example signInAnonymously() somewhere in a "guest" flow).

2. Is the email field wired to the value you send?

In generated React code the field and the value you pass to signUp are often two different things: the input updates form.email, but the submit handler sends email from another state, or the field was renamed in one place only. Log the exact object right before the call:

console.log('signUp payload', { email, passwordLength: password?.length })
const { data, error } = await supabase.auth.signUp({ email, password })

3. Stop the call when a field is empty

HTML required only blocks a form submission ("before the owning form can be submitted", MDN). If your inputs are not inside a <form>, or the button runs an onClick handler instead of submitting, required does nothing and the empty values go straight to Supabase. Either put the fields in a <form> with an onSubmit handler, or check first:

const cleanEmail = email.trim()
if (!cleanEmail || !password) {
  setError('Please enter your email and a password.')
  return
}

4. Show a human message for this code

Even after the fix, map the code so nobody sees the raw text again. Check error.code === 'anonymous_provider_disabled' and show "Please enter your email address." Matching on the code is safer than matching the message.

5. Test on a real phone with autofill

Public bug fixes for this exact error describe phone autofill (keyboard suggestions, password managers) filling the boxes without the page noticing, so the app's state stays empty. Two things help:

  • Give the inputs type="email", name="email", autocomplete="email" and, for the password, autocomplete="new-password" (MDN lists both tokens), so autofill fills the right fields.
  • When the button is pressed, read the values from the form itself instead of only from state:
function onSubmit(e) {
  e.preventDefault()
  const fd = new FormData(e.currentTarget)
  const email = String(fd.get('email') || '').trim()
  const password = String(fd.get('password') || '')
  // validate (check 3), then call supabase.auth.signUp({ email, password })
}

Then try it yourself: live URL, your phone, a new address, let the keyboard fill it in, tap "Create account".

After that, run the full new-visitor path: free FirstUser test.

FAQ

Should I just enable anonymous sign-ins?
Only if you really want guest accounts. Supabase's guide says anonymous users are stored in your database, recommends CAPTCHA or Turnstile against abuse, and limits anonymous sign-ins to 30 requests per hour per IP by default. As a fix for a broken sign-up form it hides the bug and gives you accounts without an email.
It works in the preview but not on the live site.
Then the difference is usually the device or the browser: you type in the preview, visitors on phones use autofill. Test the live URL on a phone and let the keyboard fill the fields.
I fixed the empty email and now get a different error.
That is progress. The usual next ones are "Password is known to be weak and easy to guess", "Email not confirmed" or "Invalid login credentials" right after signup, or a CAPTCHA error.
Is this the same as "Signups not allowed for this instance" or "Email signups are disabled"?
No. Those mean a setting blocks new accounts. "Anonymous sign-ins are disabled" means sign-ups are on, but the request had no email.

One fix like this per email

A short tip each day for Lovable, Bolt and Cursor apps. Unsubscribe anytime.

We'll email that address. Privacy policy

Not this problem?

Sources