Supabase auth errors, sorted by the step that fails

Four checkpoints: account, email, the return to your app, the session. Name the one that failed and open its fix.

16 receipts: each claim links the line it quotes from Supabase’s or the builder’s own docs. Check the receipts

Find my error

Look up the exact message

Copy the text from the toast, the network tab or the Auth logs and match it below. In code, compare error.code, the grey line under each message, because a message can change wording between releases while the code stays put.

Message you seeStep and fix
Signups not allowed for this instanceerror.code: signup_disabledStep 1Turn sign-ups back on
Email signups are disablederror.code: email_provider_disabledStep 1Switch the email provider on
Signups not allowed for otperror.code: otp_disabledStep 1Let the OTP call create the user
Email not confirmederror.code: email_not_confirmedStep 2Confirm the user, or the setting
email rate limit exceedederror.code: over_email_send_rate_limitStep 2Get the email sending again
invalid flow state, no valid flow state founderror.code: flow_state_not_foundStep 3Restart the PKCE sign-in
invalid flow state, flow state has expirederror.code: flow_state_expiredStep 3Restart the PKCE sign-in
Email link is invalid or has expirederror.code: otp_expiredStep 4Send a fresh link or code
Token has expired or is invaliderror.code: otp_expiredStep 4Send a fresh link or code
Invalid Refresh Token: Already Usederror.code: refresh_token_already_usedStep 4Stop the double refresh
No error. The email arrived, in the spam folderStep 2Get auth mail into the inbox
No error. The link opens localhost:3000Step 3Point the redirect at your domain

The messages are the strings the Supabase Auth server returns, copied from its source on 30 Oct 2026 (files listed under Sources).

Step 1: Supabase refuses to create the account

Nothing has been emailed yet and no user row exists. The request reached Supabase and Supabase refused it, so look at the project’s switches before you touch any code.

The widest switch is “Allow new users to sign up”. With it off, people who already have accounts can still log in, but nobody new gets throughsource, and the server answers with signup_disabledsource. It is easy to flip while testing and forget. A narrower switch sits on the Email provider itself: if that one is off, password sign-ups fail even though the project-wide one is on.

The third case looks like the first but has a different cause. A magic-link or one-time-code request that tells Supabase not to create users will fail for any address that has never signed up. That is your code’s choice, not a dashboard setting. Fix sign-ups that are switched off.

Step 2: the confirmation email doesn’t do its job

The account exists, but the user can’t finish. Either the email never left, it left and got filed as junk, or it arrived and nobody clicked it yet.

If you haven’t added your own SMTP server, Supabase’s built-in mailer is still sending, and it only delivers to people on the project’s teamsource, currently capped at two messages an hoursource. Ten sign-ups on launch day go past that. Get the confirmation email sending.

If the logs say it was sent and the user swears it isn’t there, it is usually a deliverability problem: your sending domain needs SPF, DKIM and DMARC, and the template should read like a receipt, not a promotion. Move auth mail out of spam.

And if the user tries to log in before clicking the link, Supabase blocks the login until the address is verified. Unstick an unconfirmed user.

Step 3: the link sends the user to the wrong place

The click happened. What failed is the hand-back from Supabase to your app, and there are two very different ways it goes wrong.

Wrong address. When your code doesn’t pass a destination, Supabase uses the Site URLsource. Supabase’s own docs tell you to change it from http://localhost:3000 to your production address; skip that and the first real user lands on a page that can’t load. When your code does pass redirectTo, the address has to be on the Redirect URLs allow-listsource; if it isn’t, Supabase ignores it and usually sends the user to the Site URL instead, which is how a correct-looking link still lands on localhostsource. Add the live domain and every preview host you test on. Point the redirect at your domain.

Right address, dead code. With the PKCE flow, the user returns carrying a one-time code your app trades for a session. That code is good for five minutes and one trade onlysource, and the trade has to happen in the browser where the sign-in begansource. A callback page that runs its exchange twice ends in a flow-state error. Opening the email on a phone after starting on a laptop usually fails earlier, in the browser, with “PKCE code verifier not found in storage”source. Restart the PKCE sign-in cleanly.

Step 4: the user gets in, then gets thrown out

Login worked once. The trouble is time: either a code went stale before it was used, or the session tried to renew itself and Supabase said no.

Stale code. Magic links and emailed codes expire after an hour by default, and a user can only ask for a new one once a minutesource. People who open the email the next morning, or tap “resend” three times and use the oldest one, see the expired error. Send a fresh link or code.

Refused renewal. Sessions renew with a refresh token that is meant to be spent oncesource, with a short grace window for near-simultaneous callssource. Two tabs, a server render plus a browser client, or a custom refresh timer racing the built-in one can spend it twice. If the second spend falls outside the window and Supabase’s other exception, Supabase ends the whole session by defaultsource. Stop the double refresh.

Where Lovable, Bolt and Cursor keep these settings

  • Lovable: on the built-in backend Lovable sets the Site URL when you publish and adds a connected custom domain to the redirect listsource; if you connected your own Supabase project, change them in that project’s Supabase dashboardsource. Lovable-specific symptoms: Lovable authentication errors.
  • Bolt: on Bolt Database, open the database icon at the top of the project and choose Authenticationsource; that is where email sign-up, confirmation and the templates live.
  • Cursor: nothing is hosted for you, so the switches are in your Supabase dashboard and the redirectTo values are in your own filessource, which the Agent can editsource.

Login works. Now check who can read what

Getting sign-in working is when an app becomes reachable by strangers. Each new account can call your database with its own token, so row-level security decides whether user A can read user B’s rows. Check every table before you share the link: how to check RLS is on, then run the free leak check against the live site to look for exposed keys.

Lock the tables before launch

The Supabase Launch Safety Pack: an RLS checklist, per-user policy SQL and prompts for Lovable, Bolt and Cursor.

One-time payment through Stripe, no subscription. Download after payment. See the full contents on the pack page; purchase questions go through the help form.

Secure checkout by Stripe

Sources

One Supabase Auth doc per step, quoted below with its link, plus the builders’ own docs. Error messages come from the Supabase Auth server source at commit a7e97d6:api/signup.go, api/otp.go, api/token.go, api/mail.go, api/verify.go, api/verify_ott.go, tokens/service.go. The redirect fallback is in utilities/request.go, and the browser-side PKCE message is in supabase-js auth-js errors.ts (commit b05dc29).

Receipts

Each quote is copied from the page linked under it. Checked 30 Oct 2026.

  1. Stage 1: the sign-up switch

    If this config is disabled, only existing users can sign in.

    https://supabase.com/docs/guides/auth/general-configuration

  2. Stage 1: what signup_disabled means

    Sign ups (new account creation) are disabled on the server.

    https://supabase.com/docs/guides/auth/debugging/error-codes

  3. Stage 2: the built-in mailer only reaches your team

    Unless you configure a custom SMTP server for your project, Supabase Auth will refuse to deliver messages to addresses that are not part of the project’s team.

    https://supabase.com/docs/guides/auth/auth-smtp

  4. Stage 2: the built-in mailer’s hourly limit

    Currently this value is set to 2 messages per hour.

    https://supabase.com/docs/guides/auth/auth-smtp

  5. Stage 3: Site URL is the fallback

    The Site URL in URL Configuration defines the default redirect URL when no redirectTo is specified in the code. Change this from http://localhost:3000 to your production URL (e.g., https://example.com).

    https://supabase.com/docs/guides/auth/redirect-urls

  6. Stage 3: redirectTo must be on the list

    The URL in redirectTo should match the Redirect URLs list configuration.

    https://supabase.com/docs/guides/auth/redirect-urls

  7. Stage 3: a PKCE code lasts 5 minutes, once

    For security purposes, the code has a validity of 5 minutes and can only be exchanged for an access token once.

    https://supabase.com/docs/guides/auth/sessions/pkce-flow

  8. Stage 3: same browser and device

    That means the code exchange must be initiated on the same browser and device where the flow was started.

    https://supabase.com/docs/guides/auth/sessions/pkce-flow

  9. Stage 4: magic links expire after an hour

    By default, a user can only request a magic link once every 60 seconds and they expire after 1 hour.

    https://supabase.com/docs/guides/auth/auth-email-passwordless

  10. Stage 4: a refresh token works once

    The general rule is that a refresh token can only be used once.

    https://supabase.com/docs/guides/auth/sessions

  11. Stage 4: the reuse interval

    By default this is 10 seconds and we do not recommend changing this value.

    https://supabase.com/docs/guides/auth/sessions

  12. Stage 4: outside both exceptions, the session ends

    Should the reuse attempt not fall under these two exceptions, the whole session is regarded as terminated and all refresh tokens belonging to it are marked as revoked.

    https://supabase.com/docs/guides/auth/sessions

  13. Lovable: publishing sets the Site URL; a custom domain joins the redirect list

    When you publish, Lovable sets the Site URL to your published lovable.app address, and when you connect a custom domain, Lovable adds it to the redirect URLs.

    https://docs.lovable.dev/features/authentication

  14. Lovable: your own Supabase project gets no automatic updates

    Apps that use your own Supabase project get no automatic updates, so add the addresses in that project’s auth settings.

    https://docs.lovable.dev/features/authentication

  15. Bolt: where the authentication settings open

    Log in to your Bolt project. Click the database icon in the top center of your screen. Click Authentication.

    https://support.bolt.new/cloud/database/authentication

  16. Cursor: the Agent edits your own files

    They are used to search your codebase and the web to find relevant information, make edits to your files, run terminal commands, and more.

    https://cursor.com/docs/agent/overview