Guide · Supabase · Updated
Supabase Auth settings to check before you launch
Rather check your own app first and read later? Paste its address, prove it’s yours, and the free scan shows you the worst thing a stranger can reach. Run the free scan
Your AI builder wrote the sign-up form. It didn’t touch the Supabase Auth settings behind it, because those live in your dashboard, not in your code. They decide whether an email address has to be real, where a magic link is allowed to send someone, who may create an account at all, and what a signed-in user can quietly change about themselves. This is the list we’d go through before real people sign up, in the order we’d do it, with what we saw when we tried each setting the wrong way and the right way.
New to this? Our vibe coding security checklist has eleven checks for any AI-built app. This page is only about sign-in. Your tables are protected by RLS, and the Supabase RLS checklist covers that.
Why these settings matter more than they look
Most RLS policies boil down to: signed-in users may do this. So whoever can become a signed-in user, and what they can claim about themselves when they do, is part of your security whether you thought about it or not. Supabase’s production security checklist says the Auth settings decide how your users sign up and sign in, and asks you to tighten them before real users arrive, “so sign-ups are confirmed, codes and links expire within an hour, and Auth emails come from your own domain.” That’s three of the twelve below. The rest come from Supabase’s Auth docs, and from things we saw go wrong.
To see each one with our own eyes, we built the open-source Supabase Auth server from source (the commit from 30 October 2026), ran it against PostgreSQL 17.11 on our machine, and drove it with plain HTTP calls and with supabase-js 2.118.0, using made-up email addresses and a local mail catcher. We ran it once with loose settings and once tightened. It’s the open-source server behind Supabase Auth, not Supabase’s hosted service, so where hosted defaults matter we quote Supabase’s docs rather than our lab.
First, read what your project is set to
You can click through the dashboard, but it’s quicker to ask. Supabase Auth has a public endpoint that tells any app which sign-in options are switched on. Supabase Auth’s API description calls it a way to “Retrieve some of the public settings of the server.” It only needs the publishable key that’s already in your page:
# Read-only, from any terminal. Uses only the publishable (anon) key that is already in your page.
curl -s "https://YOUR-PROJECT-REF.supabase.co/auth/v1/settings" \
-H "apikey: YOUR_PUBLISHABLE_KEY" |
jq '{disable_signup, mailer_autoconfirm, anonymous_users: .external.anonymous_users, email: .external.email, phone: .external.phone}'Our loose lab server, then the tightened one, answered:
# loose
{"disable_signup":false,"mailer_autoconfirm":true,"anonymous_users":true,"email":true,"phone":false}
# tightened, invite-only
{"disable_signup":true,"mailer_autoconfirm":false,"anonymous_users":false,"email":true,"phone":false}The second line is what you want for an invite-only app. For an open app, disable_signup stays false, but mailer_autoconfirm: true means Confirm email is off, which is check 1. Keep in mind this is what anyone can see, so it’s also what a stranger learns about your project.
For the rest of the settings you need the Management API, which reads your project’s full Auth config. Supabase’s reference for the get Auth config endpoint shows that the answer includes OAuth client secrets alongside the settings, so this script keeps only the fields it checks and never prints a secret. It makes one GET and changes nothing:
# Read-only: one GET to Supabase's Management API. It changes nothing.
# Make a personal access token at https://supabase.com/dashboard/account/tokens and delete it when you're done.
# The response also holds secrets (your SMTP password, OAuth client secrets), so jq keeps only the fields below.
export SUPABASE_ACCESS_TOKEN="your-access-token"
export PROJECT_REF="your-project-ref"
curl -s "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" |
jq -r '
def line($bad; $msg; $good): if $bad then "CHECK " + $msg else "ok " + $good end;
(.uri_allow_list // "" | split(",") | map(gsub("^\\s+|\\s+$"; "")) | map(select(. != ""))) as $urls
| line(.mailer_autoconfirm == true; "Confirm email is off: anyone can sign up with an address they do not own"; "Confirm email is on"),
line((.site_url // "") | test("localhost|127\\.0\\.0\\.1"); "Site URL is \(.site_url), so emails link there"; "Site URL is \(.site_url)"),
line($urls | any(test("^https?://\\*\\*?\\.(vercel|netlify)\\.app")); "A redirect URL accepts every app on a shared host: \($urls | map(select(test("^https?://\\*\\*?\\."))) | join(", "))"; "No redirect URL accepts a whole shared host"),
line($urls | any(test("localhost|127\\.0\\.0\\.1")); "Redirect URLs include localhost: \($urls | map(select(test("localhost|127\\.0\\.0\\.1"))) | join(", "))"; "No localhost redirect URLs"),
line((.password_min_length // 0) < 8; "Minimum password length is \(.password_min_length // "not set")"; "Minimum password length is \(.password_min_length)"),
line(.password_hibp_enabled != true; "Leaked password protection is off"; "Leaked password protection is on"),
line((.mailer_otp_exp // 0) > 3600; "Email codes and links last \(.mailer_otp_exp) seconds"; "Email codes and links last \(.mailer_otp_exp) seconds"),
line(.security_captcha_enabled != true; "CAPTCHA is off"; "CAPTCHA is on (\(.security_captcha_provider))"),
line(.external_anonymous_users_enabled == true; "Anonymous sign-ins are on, and they get the authenticated role"; "Anonymous sign-ins are off"),
line((.smtp_host // "") == ""; "No custom SMTP: the built-in sender only mails your team"; "Custom SMTP is set"),
line((.jwt_exp // 3600) > 3600; "Access tokens last \(.jwt_exp) seconds"; "Access tokens last \(.jwt_exp // 3600) seconds"),
line((.sms_test_otp // "") != ""; "Test phone numbers are still set"; "No test phone numbers"),
(if .disable_signup == true then "info Sign-ups are off: only people you invite or create can sign in" else "info Anyone can sign up" end),
(if .mfa_totp_enroll_enabled == true then "info Users can add an authenticator app (MFA)" else "info Authenticator app (MFA) enrollment is off" end)
'We ran it against two made-up configs with every field it reads, including a fake SMTP password to make sure it never prints. For the loose one it printed:
CHECK Confirm email is off: anyone can sign up with an address they do not own
CHECK Site URL is http://localhost:3000, so emails link there
CHECK A redirect URL accepts every app on a shared host: https://*.vercel.app/**
CHECK Redirect URLs include localhost: http://localhost:3000/**
CHECK Minimum password length is 6
CHECK Leaked password protection is off
CHECK Email codes and links last 86400 seconds
CHECK CAPTCHA is off
CHECK Anonymous sign-ins are on, and they get the authenticated role
CHECK No custom SMTP: the built-in sender only mails your team
ok Access tokens last 3600 seconds
CHECK Test phone numbers are still set
info Anyone can sign up
info Users can add an authenticator app (MFA)Every CHECK line maps to a section below. We didn’t run this against a hosted project, so if a field comes back empty, look the setting up in the dashboard instead. Supabase’s checklist page also has an agent prompt that audits the same things read-only, if you’d rather hand it to your AI tool.
The twelve checks
- Keep Confirm email on
- Send auth email through your own SMTP
- Set the Site URL, and keep Redirect URLs exact
- Turn sign-ups off if the app is invite-only
- Leave anonymous sign-ins off unless you need them
- Raise the password rules and block leaked passwords
- Put CAPTCHA in front of sign-up
- Know your auth rate limits
- Keep email codes and links short-lived
- Offer MFA, and enforce it where it matters
- Leave access tokens at one hour
- Never decide access from user_metadata
01
Keep Confirm email on
Supabase’s general configuration page is blunt about what turning it off means: “Having Confirm Email disabled assumes that the user’s email does not need to be verified in order to sign in and implicitly confirms the user’s email in the database.” In other words, whoever types an address owns it, as far as your app is concerned. If your app sends invoices, shares a team space by email domain, or trusts email_confirmed_at anywhere, that’s a problem.
We signed up with someone else’s address on our loose server, then again with the setting on:
Confirm email OFF
sign up as victim@… with password 123456 -> 200, a session straight away
email_confirmed_at -> set, though nobody opened that inbox
Confirm email ON
sign up -> 200, no session, email_confirmed_at empty
sign in with the password before clicking -> 400 email_not_confirmedThe good news: according to Supabase’s password sign-in docs, email confirmation is on by default for hosted projects. “On hosted Supabase projects, this is true by default.” So if it’s off, someone turned it off, and the usual reason is the next check. Supabase’s checklist says to turn it back on under Authentication > Sign In / Providers.
02
Send auth email through your own SMTP
This is the one that trips people up on launch day. Until you set your own mail server, Supabase sends auth email through a built-in sender that, per its custom SMTP guide, “is not meant for production use.” It only delivers to members of your Supabase team. Everyone else gets Email address not authorized. And it’s rate limited: “Currently this value is set to 2 messages per hour.” Your first real users can’t confirm their accounts, sign-ups look broken, and the fastest-looking fix is to switch off Confirm email.
Don’t. Supabase lists that as a goal of the bots that sign up lists of addresses to your app: “To force you to reduce the security posture of your project, such as by disabling email confirmations.” Its advice in the same list is short: “Do not disable email confirmations under pressure.” Set up custom SMTP instead. Supabase names Resend, AWS SES, Postmark, Twilio SendGrid, ZeptoMail and Brevo as services that work. Supabase’s production checklist points you to Authentication > Emails > SMTP Settings.
Two things to know once it’s on. Supabase starts you at a low limit, “a low rate-limit of 30 messages per hour is imposed”, which you can raise under Authentication > Rate Limits if you expect a launch spike. The SMTP guide also recommends setting up DKIM, DMARC and SPF for your sending domain and keeping auth mail and marketing on separate domains or From addresses. The production checklist adds one more: turn off link tracking in your email service, because it can overwrite or deform the confirmation links.
03
Set the Site URL, and keep Redirect URLs exact
Every confirmation link, magic link and password reset sends the user back to your app with a session. Where it’s allowed to send them is set on the URL Configuration page, in two parts.
Site URL. The default destination. Supabase’s password docs say it “defaults to localhost:3000”, and the Redirect URLs guide says to change it from http://localhost:3000 to your production URL, adding: “This setting is critical for email confirmations and password resets.” Left alone, your users’ confirmation emails point at their own laptop.
Redirect URLs. The allowlist for the redirectTo your code passes. Wildcards are allowed: * matches anything except . and /, and ** matches anything at all. Supabase’s advice is plain: “we recommend setting the exact redirect URL path for your site URL in production.”
Here’s why that matters. The redirect_to is chosen by whoever asks for the link, not by your app. Anyone can ask your project to email a magic link to any address and pick where it lands. If your allowlist accepts a site they control, the real email from your project, clicked by your real user, delivers that user’s session to them. We tried it with the broad Vercel pattern people sometimes paste in:
Redirect URLs: http://localhost:3000/**, https://*.vercel.app/**
attacker asks for a magic link for victim@…, redirect_to=https://attacker-demo.vercel.app/grab
victim clicks the real email from your project
-> 303 https://attacker-demo.vercel.app/grab#access_token=eyJ…&refresh_token=…
same with PKCE
-> 303 https://attacker-demo.vercel.app/grab?code=…
attacker swaps the code (with their own verifier) -> 200, the victim's session
Redirect URLs: https://myapp.example/auth/callback
same request -> the link ignores attacker-demo and goes to the Site URL, https://myapp.examplehttps://*.vercel.app/** matches every app on Vercel, including one made by a stranger five minutes ago. Vercel’s generated URLs are built from the project name and “the slug (not the name) of the account or team that contains the project/deployment”, which is why the Vercel pattern in Supabase’s guide is https://*-<team-or-account-slug>.vercel.app/**, with your slug in it. For Netlify, Supabase’s example has your org in it too. PKCE didn’t save us either: the attacker started the flow, so the attacker held the code verifier.
- Production: your exact callback URLs, like
https://yourapp.com/auth/callback. - Previews: only the slug-scoped pattern from Supabase’s guide, and only if you test sign-in on previews.
localhost: it’s there for development. If you don’t sign in to your production project from your own machine, take it out. In the server code we read, loopback addresses like127.0.0.1are accepted even when they aren’t on the list, so this is about keeping the list honest rather than closing a hole.- In your code, build every
redirectTofrom one constant with your site URL, never from a query parameter. The prompt at the end of this page does that.
04
Turn sign-ups off if the app is invite-only
If only you and the people you invite should have accounts, an internal tool or a private beta, say so in the settings. The general configuration page describes Allow new users to sign up: “If this config is disabled, only existing users can sign in.”
A hidden sign-up page isn’t the same thing. Neither is the option most AI builders reach for. Supabase’s passwordless docs say a magic link signs up new users by default: “If the user hasn’t signed up yet, they are automatically signed up by default.” The fix they show, shouldCreateUser: false, is an option your app sends. A script doesn’t have to send it:
Sign-ups ON, your app's form uses shouldCreateUser: false
your form, unknown address -> error, no account
a script calling /otp with create_user: true -> 200, link sent, account created
Sign-ups OFF (Allow new users to sign up turned off)
POST /signup -> 422 signup_disabled
magic link for an unknown address -> 422 signup_disabled
anonymous sign-in (also off) -> 422 anonymous_provider_disabledWith sign-ups off, you add people with an invite from the Users page or from your server. Remember that a signed-in stranger is exactly who a policy like to authenticated using (true) lets in, which our anon key guide shows from the other side. If you want sign-ups, just not from everyone, Supabase’s Before User Created hook can reject them, for example “requiring that users belong to a specific email domain.”
05
Leave anonymous sign-ins off unless you need them
Anonymous sign-ins give a visitor a real account with no email, handy for a cart or a demo. It’s its own switch, Allow anonymous sign-ins. The catch, from Supabase’s anonymous sign-ins guide: “Anonymous users use the authenticated role.” Every policy you wrote for signed-in users now also applies to anyone who clicks a button, and the guide’s first warning is: “Review your existing RLS policies before enabling anonymous sign-ins.”
If you need it, tell the two apart with the is_anonymous claim. This is the policy from Supabase’s guide, which we ran with a real anonymous token from our lab server:
-- From Supabase's anonymous sign-ins guide: anonymous users get the authenticated role too,
-- so a restrictive policy keeps them out of writes.
create policy "Only permanent users can post to the news feed"
on news_feed as restrictive for insert
to authenticated
with check ((select (auth.jwt() ->> 'is_anonymous')::boolean) is false);anonymous sign-in -> role "authenticated", is_anonymous true
policy "to authenticated with check (true)"
anonymous user posts -> allowed
add Supabase's restrictive policy
anonymous user posts -> new row violates row-level security policy
permanent user posts -> allowedIt has to be as restrictive. Ordinary policies are combined with OR, so a permissive policy that tries to keep anonymous users out is simply outvoted by any other policy that lets them in. Two more things from the same guide: anonymous users are stored in your database, so “bad actors can abuse the endpoint to increase your database size drastically”, and Supabase strongly recommends CAPTCHA or Turnstile for them (check 7). And “Automatic cleanup of anonymous users is currently not available”, so if you use them, the guide has a SQL delete you can schedule. Supabase’s Security Advisor also has a check for projects that allow anonymous sign-ins.
06
Raise the password rules and block leaked passwords
Supabase’s password security page lists the settings: a minimum length, required characters, and leaked password protection. On length: “Anything less than 8 characters is not recommended.” On characters, it suggests the strongest option, digits, lowercase, uppercase and symbols. Leaked password protection checks new passwords against the HaveIBeenPwned Pwned Passwords list, and “Leaked password protection is available on the Pro Plan and above.”
min length 10, lower + upper + digits, leaked passwords on
123456 -> 422 weak_password: "Password should be at least 10 characters. …"
Password1234 -> 422 weak_password: "Password is known to be weak and easy to guess, …"
(long enough, all three kinds of character, but in Pwned Passwords)Password1234 is the point of the leaked check. It passes every length and character rule you can set and is still on the lists attackers try first. Tightening the rules doesn’t lock anyone out. The page says existing users can still sign in with their current password, and if it falls short, sign-in reports a WeakPasswordError that explains why. New passwords have to meet the new rules.
Two more switches on the same page are worth a look: require reauthentication, so someone whose session is more than 24 hours old has to enter a one-time code before the password changes, and require the current password when changing it.
07
Put CAPTCHA in front of sign-up
Supabase’s CAPTCHA guide covers sign-in, sign-up and password reset, with hCaptcha or Cloudflare Turnstile, and says it “keeps your website safe from bots and malicious scripts.” The custom SMTP guide calls CAPTCHA “the most effective way to control bots” signing up fake users, and suggests invisible challenges so real people rarely see a puzzle.
One order of operations matters. The setting is on the Supabase side, the widget is in your app, and once the setting is on, every request needs a token:
CAPTCHA on (hCaptcha)
sign-up with no captchaToken -> 400 captcha_failed
"captcha protection: request disallowed (no captcha_token found)"So add the widget and pass captchaToken in your sign-up, sign-in and reset calls first, deploy, then turn the switch on. Turn it on first and nobody can sign up until you do.
08
Know your auth rate limits
Supabase Auth already rate limits its endpoints, which you can see and change under Authentication > Rate Limits. From its rate limits page, the defaults worth knowing before launch:
- Emails: 2 per hour with the built-in sender, configurable once you use custom SMTP.
- Sign-ups and sign-ins, by IP address: 30 requests per 5 minutes, with bursts up to 30.
- A new magic link, sign-up confirmation or password reset for the same user: one per 60 seconds.
- Token requests, including password sign-in and refresh: 150 per 5 minutes per IP.
- Anonymous sign-ins: 30 per hour per IP.
“When rate limits are exceeded, a 429 Too Many Requests error is returned.” Make sure your forms tell people to wait a minute and try again, rather than failing silently. One gotcha: if your sign-in runs on your server, every user arrives from your server’s IP and shares one bucket. Supabase’s page explains how to forward the user’s IP with the Sb-Forwarded-For header, which needs a secret key and has to be switched on first. These limits slow down guessing and spam. They’re no substitute for CAPTCHA or for the password rules above.
09
Keep email codes and links short-lived
Magic links and one-time codes expire after an hour by default. The same setting covers more than people think. Supabase’s passwordless docs: “The Email OTP Expiration setting also governs the validity of Magic Links and other email links, including confirmation, password recovery, email change, and invitation links.” A password reset link that works for a week is a week-long key sitting in an inbox.
The checklist says: “Use 3600 seconds (1 hour) or lower.” The passwordless docs go further: “An expiry duration of more than 86,400 seconds (one day) is strongly discouraged.” You’ll find it under Email in Authentication > Sign In / Providers. If you need more entropy, the checklist says to make the code longer, not to keep it alive longer. While you’re there, the checklist also says: “Remove any test phone numbers you added for testing.”
10
Offer MFA, and enforce it where it matters
Supabase supports MFA with an authenticator app or a phone. The part that surprises people is in its MFA guide: “Adding MFA to your app’s UI does not in-and-of-itself offer a higher level of security to your users.” A second-factor screen in your app doesn’t stop someone calling your database with a token from a password-only sign-in. The database has to check. After a second factor, the access token’s aal claim says aal2, and you check it in a restrictive policy. This is Supabase’s pattern, on our lab table:
-- From Supabase's MFA guide: no row on this table without a second factor in this session.
create policy "Require MFA"
on public.invoices
as restrictive
to authenticated
using ((select auth.jwt() ->> 'aal') = 'aal2');restrictive "aal2" policy on invoices
admin signed in with a password only (aal1) -> 0 of 3 rows
same admin after a second factor (aal2) -> 3 of 3 rowsYou don’t have to force it on everyone. The guide has policies for new users only, or only for users who turned MFA on. For most small apps we’d start with admin accounts and anything that moves money.
And protect your own account first. The checklist asks for MFA on your Supabase account, or 2FA on GitHub if that’s how you sign in, because that account can change every setting on this page.
11
Leave access tokens at one hour
The access token’s lifetime is under Auth settings > Sessions. Supabase’s sessions page: “Most applications should use the default expiration time of 1 hour.” And: “Setting a value over 1 hour is generally discouraged for security reasons.” It also warns against going under 5 minutes.
It matters because an access token can’t be called back. Supabase’s user management page says that even after you delete a user, “a token already in the user’s hands stays valid until its exp claim passes.” Short expiry keeps that window small. Supabase’s CLI config reference puts the maximum at one week, and that’s how long a stolen token would keep working. If you’re on Pro, the same page has time-boxed sessions, an inactivity timeout and single session per user, for apps where that matters.
12
Never decide access from user_metadata
This one is a code habit, not a setting, but it’s the Auth mistake we’d look for first in any AI-built app. Every user has two metadata objects. user_metadata is theirs to write: Supabase’s RLS docs say it “can be updated by the authenticated user” and “It is not a good place to store authorization data.” app_metadata “cannot be updated by the user, so it’s a good place to store authorization data.”
A user doesn’t need any tools for this. It’s two lines in the browser console of your own app:
// Anyone signed in to your app can run this in the browser console, with your public key.
await supabase.auth.updateUser({ data: { role: "admin", plan: "pro" } });
await supabase.auth.refreshSession(); // the new access token carries bothWe ran that, plus the same thing at sign-up, and then the two policies an AI builder might write:
-- BAD: reads a role from user_metadata, which the user can set themselves.
create policy "Admins can read every invoice"
on public.invoices for select
to authenticated
using ( (auth.jwt() -> 'user_metadata' ->> 'role') = 'admin' );signUp({ options: { data: { role: "admin" } } }) -> JWT user_metadata.role = "admin"
updateUser({ data: { role: "admin", plan: "pro" } }) + refresh -> JWT user_metadata has both
PUT /auth/v1/user { app_metadata: … } with the user's token
-> 403 not_admin "Updating app_metadata requires admin privileges"
policy reading user_metadata ->> 'role' = 'admin'
self-made "admin" reads 3 of 3 invoices
policy reading app_metadata instead
self-made "admin" reads 0, a user given the role on the server reads 3Supabase’s Security Advisor has a check for exactly this. Its description says user_metadata “is designed to be manipulated by the user themselves” and marks a policy that relies on it as an error. To find every one yourself, run this in the SQL Editor:
-- Policies that read user_metadata. Each one is a rule your users can switch off for themselves.
select schemaname, tablename, policyname, cmd
from pg_policies
where coalesce(qual, '') ilike '%user_meta%'
or coalesce(with_check, '') ilike '%user_meta%';In our lab it listed the bad policy, and nothing once we fixed it. The fix is to read from app_metadata, or from a table users can’t write to:
-- Better: app_metadata can only be changed with a secret key, on your server.
create policy "Admins can read every invoice"
on public.invoices for select
to authenticated
using ( (select auth.jwt() -> 'app_metadata' ->> 'role') = 'admin' );and to set that value only on your server, with the secret key, after something you trust has happened, like a Stripe webhook or your own admin page. The admin reference shows updateUserById updating app_metadata:
// Server only: a route handler, Edge Function or Stripe webhook, with the secret key.
const { error } = await supabaseAdmin.auth.admin.updateUserById(userId, {
app_metadata: { plan: "pro" },
});The change shows up in the user’s next token, after a refresh. Keep that secret key on the server: our service_role key guide is about what happens when it isn’t. Our RLS checklist covers the same trap for columns on a profiles table, and the Stripe guide has a tested entitlements table for paid plans. The free Supabase RLS checker flags policies that trust user_metadata too.
Hand the code side to your builder
Most of this page is clicking in the dashboard, and you should do that yourself so you know it’s done. The parts that live in code (redirect URLs, user_metadata, CAPTCHA tokens, anonymous users) you can hand over. This prompt asks for a plan first and tells it to keep out of your settings:
Check how this app uses Supabase Auth and change only what is listed here. Show me the changes before you make them.
- Every redirectTo or emailRedirectTo must be built from one constant with our production URL (for example NEXT_PUBLIC_SITE_URL), never from window.location, a query parameter or anything the user sends.
- Find every place that reads user_metadata (or raw_user_meta_data) to decide what a user may see or do: roles, plans, admin flags, team ids. Move those values to app_metadata, set only on the server with the secret key through auth.admin.updateUserById, or to a table users can't write to. Leave user_metadata for display things like a name or avatar.
- If CAPTCHA protection is on, pass captchaToken from a Turnstile or hCaptcha widget to signUp, signInWithPassword, signInWithOtp and resetPasswordForEmail, and reset the widget after each try.
- If anonymous sign-ins are used, add a restrictive RLS policy on every table anonymous users must not write to that checks (select (auth.jwt() ->> 'is_anonymous')::boolean) is false.
- Don't change any setting in the Supabase dashboard. Give me a list of the dashboard settings you think need changing instead.Then run the audit script at the top again, and the SQL from check 12.
Where LockShip fits
Honestly, mostly next door. The LockShip scan doesn’t read your Auth settings and never signs up or signs in to your app, so none of the twelve checks above is something it does for you. What it does is look at your app from the outside, the way a stranger would: secret keys in the JavaScript your site serves, Supabase tables that answer the public key, Edge Functions that don’t ask who is calling, exposed files, headers and certificates. If check 12 or check 5 left a table open to the wrong people, the RLS checklist is where to go next, and the scan is how you see what’s open from the outside after you’ve fixed it.
The summary is free: a score and the single worst thing we found. The $39 Launch Safe certificate includes every finding with a fix prompt you can paste into your builder, the RLS SQL, a PDF, and seven days of re-scans while you fix things. A passing re-scan gives you a badge you can put on your site. Monitor, at $9 a month, re-runs the scan every week and emails you once when a new critical or high issue shows up. The pricing page has the details.
Settings done? See what a stranger can still reach.
Paste your app’s address, prove you own it, and see what someone with only your public key can read. The summary is free.
Run a free scanBefore you rely on a result, read the disclaimer.
Questions people ask
Is it safe to turn off email confirmation in Supabase?
Not for a public app. With Confirm email off, Supabase treats every address as confirmed the moment someone signs up with it, so anyone can create an account in someone else’s name and get a session straight away. We saw exactly that on the open-source Supabase Auth server. People usually turn it off because the built-in email sender only mails their own team and is limited to 2 messages an hour. Set up custom SMTP instead. Supabase’s own advice is not to disable email confirmations under pressure.
Should I use wildcards in Supabase Redirect URLs?
Only narrow ones, and only for previews and local development. Supabase recommends the exact redirect URL path for production. A pattern like https://*.vercel.app/** matches every app on Vercel, not just yours, and in our test a magic link started by an attacker with that pattern delivered the victim’s tokens to the attacker’s vercel.app page, with the implicit flow and with PKCE. If you need preview URLs, use Supabase’s pattern that includes your own team or account slug.
How do I make a Supabase app invite-only?
Turn off Allow new users to sign up in the Auth settings. Then only existing users can sign in, and you add people with an invite from the dashboard or from your server. Hiding the sign-up form or passing shouldCreateUser: false in your code isn’t enough on its own: those only change what your app asks for, and a script can call the Auth API directly. If you want sign-ups from your company’s domain only, Supabase’s Before User Created hook can reject everything else.
Can users change their own user_metadata in Supabase?
Yes. Any signed-in user can call updateUser with a data object and set user_metadata to whatever they like, and they can set it at sign-up too. The new value shows up in their next access token. That makes it fine for a display name and wrong for a role, a plan or an admin flag. Put those in app_metadata, which a user’s own token can’t change, set from your server with the secret key, or in a table users can’t write to.
Is Supabase leaked password protection free?
No. Supabase says leaked password protection, which checks new passwords against the HaveIBeenPwned Pwned Passwords list, is available on the Pro Plan and above. The minimum length and required characters are settings on every plan. Supabase says anything under 8 characters is not recommended.
Keep reading
- Vibe coding security checklist: what to check before you launch an AI-built app
- A Supabase RLS checklist for vibe-coded apps
- Supabase anon key exposed? What a stranger can see and call with it
- Supabase service_role key exposed? What to do in the next hour
- Is my Lovable app secure? Seven checks you can do yourself
- Free Supabase RLS checker
Sources
We read each of these on 3 November 2026. Supabase changes its dashboard and defaults, so if something here disagrees with its docs, trust Supabase and tell us at hi@lockship.dev. We tested on the open-source Supabase Auth server built from source (30 October 2026) with PostgreSQL 17.11 and supabase-js 2.118.0, with made-up addresses, a local mail catcher and lab keys. We didn’t test against Supabase’s hosted service or click through its dashboard for this guide, and we ran the audit script against made-up configs, not a real project.
- Production security checklist, Supabase docs
- General configuration (Auth), Supabase docs
- Password-based Auth, Supabase docs
- Send emails with custom SMTP, Supabase docs
- Redirect URLs, Supabase docs
- Accessing deployments through generated URLs, Vercel docs
- Passwordless email sign-in, Supabase docs
- Before User Created hook, Supabase docs
- Anonymous sign-ins, Supabase docs
- Password security, Supabase docs
- Enable CAPTCHA protection, Supabase docs
- Rate limits (Auth), Supabase docs
- Multi-factor authentication, Supabase docs
- User sessions, Supabase docs
- User management, Supabase docs
- Row Level Security (auth.jwt and metadata), Supabase docs
- RLS references user_metadata, Supabase Security Advisor (splinter)
- Advisors, Supabase docs
- Production checklist, Supabase docs
- auth.admin.updateUserById, Supabase JavaScript reference
- openapi.yaml (/settings), Supabase Auth on GitHub
- Supabase Auth server source, GitHub
- Get project’s Auth config, Supabase Management API reference
- CLI configuration reference (auth.jwt_expiry), Supabase docs