Skip to content
FirstUser

For builders shipping this week

"Signups not allowed for this instance"? 5 checks for Supabase and Lovable apps

Your own login works, so the app looks fine. A stranger clicks "Sign up" and gets "Signups not allowed for this instance", or nothing at all. FirstUser opens your live URL like a brand-new visitor, signs up, logs in and tells you which step failed, with a screenshot and a fix prompt for Lovable, Bolt or Cursor. Run a free signup test.

Supabase Auth returns this message with the error code signup_disabled (HTTP 422) whenever something would create a new account while new sign-ups are switched off for the project. Existing users are not affected: they keep signing in with password, magic link or Google. That's exactly why you don't notice. Your account already exists. Your first user's doesn't.

The same check blocks every road to a new account:

1. The sign-up switch is off

Your own Supabase project: Authentication → Sign In / Providers → Allow new users to sign up. If it's off, only existing users can sign in. Turn it on and save. It's a project setting, so there's nothing to redeploy.

Lovable's built-in backend (Lovable Cloud): More → Users → Settings → Disable sign-up. When it's on, new users can't sign up, existing users can still sign in, and you can still add people yourself with Add user. Turn it off if strangers should be able to join.

People usually switch this off on purpose at some point: while the app was half-built, for a private demo, or because a template was invite-only. Then the app launches and nobody switches it back.

If the app should stay invite-only, leave it off, but then remove the public sign-up form and show a clear "Accounts are invite-only" message instead of a generic error.

2. You changed the switch on the wrong backend

A Lovable app can run on Lovable's built-in backend or on your own Supabase project, and many builders have a test and a production Supabase project. Flipping the switch in a project your live site doesn't use changes nothing.

Fix: open your live URL in a private window, open DevTools → Network, try to sign up and click the request to …supabase.co/auth/v1/signup. The first part of that hostname is the project reference your live site really talks to. Change the setting in that project (or in Lovable's Users settings if it's not one of your Supabase projects).

Local development with the Supabase CLI ignores the dashboard: there, enable_signup under [auth] and [auth.email] in supabase/config.toml decides. If sign-up works on your machine but not on the live site, the hosted project's switch is the one to check.

3. Google login sends new users back with nothing on screen

With Google and other OAuth providers, the error doesn't come back from a function call. Supabase redirects the person back to your site with the error in the URL, for example:

https://yourapp.com/?error=access_denied&error_code=signup_disabled&error_description=Signups+not+allowed+for+this+instance

Generated login pages rarely read those parameters, so the visitor lands on the login page again with no message and gives up. Your own Google account works because it already exists.

Fix: turn sign-ups on (check 1), and make the page you redirect to read error_code / error_description from the query string and the # fragment and show it. For the rest of the Google setup, see Lovable Google login not working.

4. "Signups not allowed for otp": the magic link refuses new emails

This one is different. If your code calls signInWithOtp({ email, options: { shouldCreateUser: false } }) and the address has no account yet, Supabase answers otp_disabled, "Signups not allowed for otp", even when sign-ups are on for the project. AI-generated "login with magic link" pages sometimes set shouldCreateUser: false so the login page doesn't create accounts, and then the app has no other way to sign up.

Fix: either let the magic-link form create users (remove shouldCreateUser: false or set it to true), or keep it as login-only and add a real sign-up path. Then check that the message for this case says "No account with this email yet, sign up first" instead of a generic error.

5. "Email signups are disabled": the Email provider is off

If the error is HTTP 400 "Email signups are disabled" (code email_provider_disabled), the project-wide switch is fine, but the Email provider itself is turned off under Authentication → Sign In / Providers → Email. Magic links then fail with "Email logins are disabled". Turn the Email provider back on if your app offers email at all, or remove the email form if you meant to offer only Google.

Map the codes to plain messages

Branch on error.code, not on the message text:

CodeWhat the user should read
signup_disabled"New accounts are closed right now." (and fix check 1, unless that's intended)
otp_disabled"No account with this email yet. Sign up first."
email_provider_disabled"Email sign-up isn't available. Use Google instead." (or turn Email back on)
user_already_exists"You already have an account. Log in or reset your password."

Test it like a stranger, after every change

Use a private window, your real live domain, and an email address that has never signed up. Try every way in: the email form, the magic link and the Google button. Your own account can't tell you whether sign-ups are open, because it already exists. If you'd rather not repeat that after every prompt, let FirstUser be the first user.

FAQ

Do existing users get locked out when sign-ups are off?

No. The check only runs when Supabase would create a new account. Existing users sign in as usual, and invited users (or users you add yourself) still get accounts.

I turned sign-ups on and now get a different error.

That's progress. The usual next ones are "Email not confirmed" or "Invalid login credentials" right after signup, a CAPTCHA error, "Database error saving new user" from a profile trigger, or "new row violates row-level security policy" when the app inserts a profile before a session exists.

Is this specific to Lovable?

No. Any app using Supabase Auth behaves this way, whether it was built with Lovable, Bolt, Cursor, Replit or by hand. Lovable's built-in backend just has its own switch for it.

Can FirstUser catch this?

FirstUser signs up on your live URL with a new email. If your page shows the error text in a visible role="alert" or data-error element, the sign-up step is marked failed with "The sign-up form was rejected." and the diagnosis includes that text. If the page shows nothing, the step fails with "Sign-up was submitted, but the page did not show a success state." Either way you get a screenshot of the step. Run a free signup test.

Checklist

Get this checklist by email

We will email this checklist to that address. Privacy policy