Skip to main content
Sealgap

What is email confirmation?

Email confirmation is the step where a new user has to click a link sent to their address before their account works. It proves that the person signing up can read mail at that address. Without it, an account can be created with any address at all, real or invented, and used straight away.

How it works in Supabase

Supabase sends the confirmation mail itself when a user signs up with an email address and a password. According to the Supabase guide to password sign-in, confirmation is required by default on hosted projects, and off by default in local development. The setting sits with the email provider under Authentication in the project's dashboard.

That default is why the problem is common in practice rather than in theory. Confirmation mails can be slow or land in spam while an app is being built, and switching confirmation off is the quickest way to keep testing. The switch is in a dashboard, not in the code, so nothing in the app's history reminds anyone to switch it back before launch.

Why it matters for access rules

Many Row Level Security policies are written for "signed-in users", on the idea that a signed-in person is a real customer. With confirmation off and sign-up open, anyone can become a signed-in user in seconds by filling in the form with a made-up address. Every policy that lets all signed-in users read a table is then open to anyone who bothers to sign up.

A policy that compares each row's owner with the user's own ID is not affected, because a new account owns nothing. The policies at risk are the wide ones: shared lists, directories of other users, anything written as "authenticated users may read".

Anonymous sign-in lowers the bar the same way, without even an address.

When switching it off is fine

Some apps have a real reason to let people in at once, such as a free tool where a confirmation step would lose most users. That is a fair choice when the access rules are written for it: nothing that matters should be readable by "any signed-in user". An app that is meant to be by invitation only should close sign-up entirely rather than rely on confirmation.

What to check

Also known as

email verification confirm email double opt-in sign-up

Free check

See what one of your apps answers.

Certificate, browser protections and keys in public code. No account needed.

See what one of your own apps answers.

The free check looks at an app from the outside: whether it answers, its certificate, its browser protections and keys in its public code.