Supabase Auth: “Email not confirmed”
Last verified: October 18, 2026
AuthApiError: Email not confirmed
What it means
Email confirmation is turned on, and this user hasn't clicked the confirmation link yet, so Supabase refuses the sign-in (error code email_not_confirmed). Very often the email never arrived: Supabase's built-in email service only sends to members of your Supabase team and is limited to about 2 emails per hour, so real users don't get the link until you set up custom SMTP.
How to fix it
- In Authentication → Users, check whether the user shows as unconfirmed.
- For testing, you can confirm that user manually from the dashboard.
- For real users, set up a custom SMTP provider (Resend, Postmark, SES, etc.) in Authentication settings so confirmation emails actually get delivered.
- In your app, show a clear “Check your email to confirm your account” message and a resend button instead of a generic login error.
If your Lovable project uses Lovable Cloud instead of your own Supabase project, the same database lives under More → Cloud → Database. Its RLS view is read-only, so ask Lovable in chat (Plan mode) to make the policy change.
Stop the loop: paste these into Lovable
1. Diagnose first
Stop editing and don't retry earlier fixes. Users get AuthApiError: Email not confirmed when logging in. Without changing anything, tell me: is email confirmation enabled, is a custom SMTP provider configured or is the project using Supabase's built-in email service, and what the sign-up screen tells users after they register. State the cause in one sentence and propose ONE minimal change.
2. Then the one fix
Make one change based on the diagnosis. If the built-in email service is in use, tell me exactly where to configure custom SMTP in Authentication settings (I'll add the credentials myself; don't put them in code). In the app, catch the email_not_confirmed error code and show 'Check your inbox to confirm your email' with a resend-confirmation button. Don't turn off email confirmation. Test sign-up with a fresh address and tell me exactly what changed.
3. Save this rule so it stays fixed
Lovable: Project settings → Knowledge. Cursor: .cursor/rules or .cursorrules. Bolt: Project settings → Knowledge. Replit: replit.md.
Rule: Keep email confirmation on. Handle Supabase auth errors by error.code (email_not_confirmed, invalid_credentials, over_email_send_rate_limit) and show a specific message for each. Production needs custom SMTP; the built-in email service is for testing only.
FAQ
Should I just disable email confirmation?
Supabase advises against it. It lets anyone create accounts with other people's email addresses.
Why did it work for me but not my users?
The built-in email service only delivers to your Supabase team members, so your own address works and strangers' addresses don't.
Sources
Your error is a bit different? Paste it with what you already tried and get a diagnose-first prompt, one fix and a rule for your exact case.
Break the loop — 3 free fixes Still stuck? Get a human fix