Skip to content

Security basics

"Signups not allowed for this instance" in Supabase

"Signups not allowed for this instance" is Supabase refusing new accounts. Which switch does it, and why hiding your sign-up form is not the same thing.

Vlad Tkachenko10 min read
A pale patch on a lobby wall where a sign used to hang, and below it a front desk still passing a badge across the counter.

In short

  • "Signups not allowed for this instance" means the Allow new users to sign up switch is off in your Supabase project, so Supabase refuses every new account, whichever button the person pressed.
  • People who already have an account still sign in. New accounts come from you alone: an invitation you send from the dashboard, or a user made with your secret key.
  • Taking the sign-up form out of your app does not do this. Every Supabase project has its own sign-up address that works without the form, and only the switch closes it.

Somebody tries to create an account in your app and gets a red line where the welcome email should have been:

Signups not allowed for this instance

Or you add a Google button to your Lovable or Bolt app, try it with an address that has never signed in, and land back on your site with error=access_denied and the same sentence in the address bar.

"Signups not allowed for this instance" is Supabase telling you that the project behind your Lovable, Bolt, v0, Cursor, Claude Code or Replit app has stopped taking new accounts. Nothing is broken. A setting on the project is switched off, and every route to a new account now gets the same answer.

Here is the part most fixes for it skip: that switch is the one place where sign-up closes for every route at once. The owners who need this page most are the ones who never see the message. They took the sign-up page out of their app, left the switch on, and still take new accounts from anyone who asks.

What does "Signups not allowed for this instance" mean?

It means Supabase Auth, the part of Supabase that creates accounts and signs people in, refused to make a new account because your project has sign-ups switched off.

The sentence is written into the Auth server's own code. In the sign-up handler, the first thing checked is whether sign-ups are disabled, before any email or password is read. If they are, the answer is HTTP 422 with the code signup_disabled. In your app it arrives as an error from supabase.auth.signUp(), with error.code set to signup_disabled.

The same check stands on every road to a new account:

  • An email and password form, which calls signUp().
  • A Google, GitHub or other sign-in button, used with an address that has no account yet. The code behind those buttons refuses with the same sentence and sends the person back to your app with error=access_denied.
  • A magic link to an address with no account. Supabase makes that account by signing the person up first, so the refusal is word for word the same.
  • Anonymous sign-in, which creates an account with no email at all and is refused by the same check.

Think of Supabase Auth as the front desk of a building. Every account is a badge, and the desk is the only place badges are made. "Allow new users to sign up" is the instruction the desk works to. With it off, the desk stops making badges on all four of those routes.

Who can still sign in when sign-ups are off?

Everybody who already has an account, and anyone you invite.

Supabase's configuration guide puts it in one line: with this setting disabled, "only existing users can sign in." The code agrees. The check sits on the branch that creates an account and nowhere else, so a password, a magic link or a Google button keeps working for an account that exists. At the desk, people already wearing a badge walk past it as they always did.

New people come in one way: you write the badge yourself. Supabase's guide to users gives the route. Go to Authentication → Users, click Add user, and choose Send invitation. Inviting is "an admin action", and neither the invite code nor the admin route that creates a user directly looks at the sign-up switch. Both need your dashboard login or your secret key, so the switch was never written for them.

Check one thing before you rely on invitations. An invited person arrives with no password, like somebody who signed up with Google. If your sign-in page only takes a password, your app also needs the page that sets one, which calls supabase.auth.updateUser({ password }). Without it, the person can follow the invitation once and has nothing to type the next time.

With sign-ups off, people who already have a badge keep walking in, strangers stop at the desk, and the only new badges are the ones you send out yourself.

"Signups not allowed for otp" comes from your app, not the switch

It means your app asked for a magic link or a one-time code, told Supabase not to create an account, and the address has none.

supabase.auth.signInWithOtp() takes an option called shouldCreateUser. Left alone it is true in Supabase's JavaScript library, and a new address gets an account. Set to false, it asks for existing people only. The one-time code handler then looks the address up, finds nothing, and answers HTTP 422 with the code otp_disabled and the words "Signups not allowed for otp". The project switch plays no part in it, and you can see this message with sign-ups wide open.

So the person typed an address you do not have: a second email, or a typo.

Four more refusals look similar and come from somewhere else again. All of them are in the same handlers:

The messageerror.codeStatusWhat is switched off
Signups not allowed for this instancesignup_disabled422Allow new users to sign up, for the whole project
Signups not allowed for otpotp_disabled422Account creation, in your app's own request
Email signups are disabledemail_provider_disabled400The Email provider, under Sign In / Providers
Phone signups are disabledphone_provider_disabled400The Phone provider, in the same place
Anonymous sign-ins are disabledanonymous_provider_disabled422Allow anonymous sign-ins

If it is a sign-in button that refuses before anyone gets as far as signing up, Unsupported provider: provider is not enabled is that message.

Hiding the sign-up form does not turn sign-ups off

It cannot, because the accounts are made by your Supabase project and the form only asks it to.

Every Supabase project answers at its own address, and part of that address is a sign-up endpoint, /auth/v1/signup. It accepts any request that carries your publishable key (sb_publishable_…, or anon in older projects). That key is in the code of every page your app sends to a browser, which is where it belongs. So anyone who opens your site can copy the key, call signUp() from their browser's console, and leave with an account. Your form never loads.

At the desk, your form is a sign in the lobby that says "badges here". Taking the sign down means fewer people find the desk by accident. The desk still makes a badge for anyone who walks up and asks for one.

This matters because of what an account can read. A signed-in user carries the role authenticated, and a database rule written for authenticated lets in everyone who has an account. While sign-ups are open, that is anyone at all. The longer version of that mistake shows the rule that keeps each person to their own rows. Switching on Confirm email only means the stranger clicks a link sent to an address of their own before the account works.

A hidden form leaves the desk open to anyone holding your publishable key. The switch shuts the desk for every way of asking at once.

How do I check whether sign-ups are open?

Open your Supabase dashboard, go to Authentication → Sign In / Providers, and read the Allow new users to sign up switch.

Then set it by who your app is for:

Who your app is forAllow new users to sign upWhat keeps each person's data apart
Anyone who wants an account: a shop, a public tool, a forumOnRules that tie each row to its owner, such as auth.uid() = user_id
People you choose: your team, your clients, a private betaOffThe same rules, plus an invitation for each person

While you are on that page, look at Allow anonymous sign-ins. With sign-ups on, it lets anyone create an account with no email at all. Then open Authentication → Users and read the list. An account you do not recognise belongs to somebody who found the desk without your sign.

What a visitor with no account can read is the other half, and that can be seen from outside. Our free scan asks each table your app names how many rows a visitor with no login can count, reads only the number, and takes about 20 seconds with no account: scan your app.

Turning sign-ups off without locking out the people you want

Invite them first, switch sign-ups off second, and give your app a better answer than the raw error.

  1. Read Authentication → Users for everyone who should have access, and send an invitation to anyone missing.
  2. Switch Allow new users to sign up off.
  3. Take the sign-up button out of your app, or replace it with a line saying the app is invite-only, so nobody meets the error by surprise.
  4. Decide on the code in your app. Supabase's error code reference says to "always use error.code and error.name to identify errors, not string matching on error messages."
const { error } = await supabase.auth.signUp({ email, password })
if (error?.code === 'signup_disabled') showInviteOnly()

One difference to keep off your sign-in page. With sign-ups off, a magic link to an address that has an account goes out with an empty success, and a request for an address with none comes back with the 422, because the magic link code tries to create the account first. If your page prints those two differently, anyone with a list of addresses can sort it into your users and everyone else. Show the same line for both: "If that address has an account, a sign-in link is on its way." Invalid login credentials is the same problem on the password form, told in full.

If a builder writes your auth pages, paste steps 3 and 4 and that last paragraph in as the instruction.

Keeping it the way you set it today

Two things can still change after today: a later edit loosens a rule on one of your tables, and somebody who got an account before you closed sign-ups changes rows they should never have reached.

Reeve Monitor keeps checking from outside:

  • the full security check every hour, including how many rows a visitor with no login can count in the tables your app names
  • an alert the day a re-scan grades your app lower than the one before
  • your sign-in page, checked for being there and showing the right words
  • whether the app is up, every 60 seconds

Reeve Care keeps a copy of your Supabase database, accounts included:

  • an encrypted copy on a schedule, on Reeve's own storage in the EU, outside your Supabase account
  • the auth schema your users' accounts live in, so they come back with everything else
  • each copy verified before it counts, by counting the rows in every table
  • your uploaded files as well, once you connect a Storage credential
  • a one-click restore, with a safety copy of the current state taken first
  • everything Monitor does

What to do now

What to do

  • Read Allow new users to sign up under Authentication → Sign In / Providers, and decide whether your app is for anyone or for people you choose.
  • If it is for people you choose, invite everyone who needs access, then switch sign-ups off.
  • Read the list under Authentication → Users for accounts you do not recognise.
  • For "Signups not allowed for otp", look at the address and at your app's shouldCreateUser option. The project switch is not involved.
  • Show one message on your sign-in page whether or not the address has an account.
  • Count sign-up as closed only when the switch is off, whatever your app shows.

If new accounts fail with a different message, Database error saving new user covers that end of the form. The 10-minute security checklist covers what else tends to be left open in a newly launched app.

FAQ

What does "Signups not allowed for this instance" mean in Supabase?

It means the Allow new users to sign up switch is off for your Supabase project, so Supabase Auth refused to create an account. It answers with HTTP 422 and the code signup_disabled. Nothing in your app is broken. Somebody tried to make a new account, by a form, a Google button, a magic link or an anonymous sign-in, and the project is set to refuse all of them.

Can existing users still log in when sign-ups are disabled?

Yes. Supabase describes the setting in one line: when it is disabled, "only existing users can sign in." A password, a magic link or a Google button keeps working for an account that already exists. What fails is anything that would create a new account.

How do I add a user when sign-ups are turned off?

Invite them. In your Supabase dashboard, go to Authentication, then Users, click Add user and choose Send invitation. Inviting is an admin action and the sign-up switch does not apply to it. From code it is supabase.auth.admin.inviteUserByEmail, which needs your secret key and so belongs on a server, never in the app your visitors load.

What is the difference between "Signups not allowed for this instance" and "Signups not allowed for otp"?

The first comes from the project switch. The second comes from your app: it asked for a magic link or a one-time code with shouldCreateUser set to false, and the address has no account. You can see it with sign-ups switched on. Supabase answers it with HTTP 422 and the code otp_disabled.

If I remove the sign-up page from my app, can people still sign up?

Yes, while the switch is on. Every Supabase project has its own sign-up address, and it accepts the publishable key that is in the code of every page your app sends to a browser. Anyone who copies that key can create an account without your form. Switch Allow new users to sign up off if only people you invite should get in.

Written by

Vlad Tkachenko

Founder, Reeve

I spend my time looking at apps built with Lovable, Bolt, v0, Cursor and Replit, and at the short list of mistakes that keep turning up in them.

More about the author

Read next

All articles

Back up your Supabase database before your next change

Reeve keeps an encrypted copy on a schedule and restores it for you if something breaks.

See Supabase backups

Automated external check, not a full audit. Absence of findings is not a guarantee of safety.