Guide
Supabase auth rate limits before launch: email limits, OTP, CAPTCHA and sign-up spam
Short answer: before you launch a Supabase app, check four things. First, set up custom SMTP. The built-in email sender only delivers to your own team's addresses and allows 2 auth emails per hour across the whole project.¹² Second, raise the email limit in Authentication → Rate Limits to match the sign-ups you expect.¹² Third, turn on CAPTCHA (hCaptcha or Cloudflare Turnstile) for sign-up, sign-in and password reset.³ Fourth, remember that these limits only protect Supabase's own /auth/v1/… endpoints. Code you write yourself, like an Edge Function or API route that calls OpenAI, needs its own limit.⁸
Apps built with Lovable, Bolt or Cursor on Supabase usually leave all of this at the defaults. In development everything looks fine, because the built-in sender only emails your team. On launch day, real users' confirmation emails never arrive, or a bot floods your sign-up form.
The default limits (checked 3 Dec 2026)
These come from Supabase's Rate limits page.¹ When a limit is hit, Supabase Auth returns 429 Too Many Requests.¹
| What | Limited by | Default |
|---|---|---|
| Auth emails (confirmations, magic links, resets, invites) | Whole project | 2 per hour with the built-in sender. You can change it only once you use custom SMTP or a Send Email hook |
| Auth SMS | Whole project | 30 per hour |
| Sign-ups, magic links, OTP requests, password resets, resends | IP address | 30 requests per 5 minutes, bursts up to 30 |
| A new OTP, magic link, sign-up confirmation or reset for the same user | User | One every 60 seconds |
Token endpoint (/auth/v1/token): password sign-in, token refresh, ID-token and PKCE grants |
IP address | 150 requests per 5 minutes, bursts up to 30 |
OTP / link verification (/auth/v1/verify) |
IP address | 30 requests per 5 minutes, bursts up to 30 |
| MFA challenge and verify | IP address | 15 per minute, bursts up to 30 (not adjustable) |
| Anonymous sign-ins | IP address | 30 per hour |
Most of these can be changed in Authentication → Rate Limits or through the Management API.¹ Supabase's older Production checklist page still lists some figures that don't match this table (for example "360 OTPs per hour").⁷ If the two pages disagree, trust the Rate Limits page and your own dashboard.
1. "Email rate limit exceeded", or emails never arrive
Cause: the built-in email sender. Supabase says it's "not meant for production use". It only sends to addresses in your organisation's team ("Email address not authorized" for everyone else), it's limited to 2 messages per hour, and the limit "can change without notice".²
Fix:
- Pick an email service. Supabase lists Resend, AWS SES, Postmark, Twilio SendGrid, ZeptoMail and Brevo as examples. Any provider with SMTP works.²
- In Supabase, open Authentication → Emails → SMTP Settings and enter the host, port, user, password and a From address such as
no-reply@yourapp.com.²⁷ - After you save, Supabase starts you on 30 emails per hour to protect your new sender's reputation.² Raise it in Authentication → Rate Limits to what launch day needs. Supabase's production checklist says a big public announcement will likely need more than 30 an hour.⁷
- Set up DKIM, DMARC and SPF for your sending domain with your email provider. Supabase says this "will significantly increase the deliverability" of your emails.²
- Keep auth emails separate from marketing emails: a different service or sending domain, and a different From address. That way a newsletter complaint can't hurt your sign-up emails.²
- Test a real sign-up to an address outside your team, and check the spam folder.
On Lovable's built-in backend (Lovable Cloud) you don't configure Supabase directly. Go to More → Users → Settings → Email → Advanced → Rate limit for sending emails. New projects start at 1,000 an hour once the project's email sending is active, and you can set up to 32,767.⁹ Lovable says that until you set up custom emails, auth emails go through a shared sender with its own strict limit, so a higher number won't get more emails delivered.⁹ It's also the only auth rate limit you can change yourself. For anything else before a launch, Lovable says to contact support.¹⁰
2. Fake sign-ups and email bombing
Once your sign-up form sends real emails, bots can use it. Supabase's SMTP guide describes the usual pattern: scripts sign up lists of email addresses. The aim is to damage your sending reputation (sometimes followed by a ransom demand), to block real sign-ups and password resets, or to push you into turning off email confirmation.²
Fix: turn on CAPTCHA. Supabase calls it "the most effective way to control bots in this scenario".²
- Create a site in hCaptcha or a Cloudflare Turnstile widget and copy the site key and secret key.³
- In Supabase: Authentication settings → Bot and Abuse Protection → Enable CAPTCHA protection. Choose the provider and paste the secret key.³
- In your frontend, show the widget and pass its token to Supabase. The site key goes in the widget, never the secret key:³
await supabase.auth.signUp({
email,
password,
options: { captchaToken },
})
The same captchaToken option exists on signInWithPassword, signInWithOtp and resetPasswordForEmail in supabase-js.¹¹ Reset the widget after each call, as Supabase's example does.³ Turn the setting on and ship the frontend change together. Otherwise sign-ups and sign-ins from the old frontend start failing.
Also: keep email confirmation on for a live app. Lovable's docs make the same point: without confirmation, "anyone can sign up with an address they don't own."⁹ Supabase also suggests preferring social sign-in, and one-time codes over passwords, because that limits what attackers gain.²
3. Password guessing
Password sign-in is limited per IP address: 150 requests per 5 minutes, with bursts of up to 30.¹ That slows down one machine, but the limits on the Rate Limits page are per IP or per project, not per account. An attacker using many IP addresses isn't stopped by them. OWASP recommends counting failed logins per account rather than per IP for exactly this reason.¹²
What you can set without writing code:
- Leaked password protection checks new passwords against the Have I Been Pwned list. On Supabase it needs the Pro plan or above.⁴ On Lovable Cloud the Password HIBP check is on by default for new projects.⁹
- Minimum length of 8 or more. Supabase says anything under 8 is not recommended.⁴
- CAPTCHA on sign-in (section 2). OWASP suggests that if you're worried about friction, you only show it after a few failed attempts.¹²
- MFA for accounts that matter, such as admins.⁴
4. OTP and SMS: limits and cost
- A user can request a new email code or magic link once every 60 seconds. Each one expires after 1 hour by default. You can change the expiry under Authentication → Sign In / Providers → Auth Providers → Email → Email OTP expiration. Supabase advises against anything longer than a day.⁵
- Changing that expiry also changes how long confirmation, password reset, email change and invite links stay valid.⁵
- SMS is limited to 30 messages per hour per project by default.¹ Every message costs you money with your SMS provider. Supabase says to "adjust your project's rate limits and configure CAPTCHA" to keep SMS costs under control.⁶ Lovable says the same about Lovable Cloud phone sign-in: your SMS provider bills you directly for every message.¹³
5. All your users suddenly share one IP
If users sign in through your server (a Next.js server action, an API route or a proxy) instead of straight from the browser, Supabase sees your server's IP address on every request. Your whole user base then shares one allowance of 30 requests per 5 minutes. Sign-ups start failing with 429 as soon as you get any traffic.
Fix: turn on IP Address Forwarding in Authentication → Rate Limits. It's off by default on new projects.¹ Then send the visitor's IP in the Sb-Forwarded-For header from your server, using a secret key (sb_secret_...). Only the secret key works for this. The publishable key and the older anon / service_role keys aren't supported.¹ That secret key must stay on the server.
6. Your own endpoints aren't covered
Supabase's rate limits apply to Supabase Auth endpoints only.¹ They don't protect:
- an Edge Function or API route that calls OpenAI or another paid API,
- a contact form or "invite a friend" function that sends email through your own provider,
- any function that does expensive work per request.
For these, require a signed-in user (the anon key guide shows how Edge Functions should check the caller). Then add your own limit. Supabase's docs include an Edge Function example that uses Upstash Redis to rate-limit by the Supabase Auth user ID.⁸ For paid APIs, also set a spending cap in the provider's dashboard.
How to check your own app (10 minutes)
Do this on your own app, with your own email addresses:
- Sign up with an address that isn't on your Supabase team. If the email never arrives, or you get "Email address not authorized", you're still on the built-in sender (section 1).
- Request two password resets for the same address within a minute. The second should be refused with a rate-limit error. That's the per-user 60-second window doing its job.¹
- Open Authentication → Rate Limits and compare the email limit with what you expect on launch day.
- Check that CAPTCHA is on under Bot and Abuse Protection, and that the widget appears on sign-up, sign-in and reset.
- List every Edge Function and API route that calls a paid API or sends email, and confirm each one has a check for who's calling and a limit.
Supabase's Test auth flows guide shows how to test email and phone sign-in without burning through the sending limits.¹ Don't load-test the live Auth endpoints. Supabase's limits apply to your tests too.¹
A prompt for Lovable, Bolt or Cursor
Before launch, harden our Supabase auth against abuse. 1) Add Cloudflare Turnstile (or hCaptcha) to sign-up, sign-in, magic-link and password-reset forms and pass the token as
options.captchaTokenin signUp, signInWithPassword, signInWithOtp and resetPasswordForEmail; reset the widget after each attempt. Use only the public site key in frontend code. 2) Make sure email confirmation stays on. 3) List every Edge Function or API route that calls a paid API or sends email, make each one require a signed-in user, and add a per-user rate limit. 4) Tell me which settings I need to change myself in the Supabase dashboard (custom SMTP, Rate Limits, CAPTCHA secret key, leaked password protection), and remind me to set up DKIM, DMARC and SPF for the sending domain.
Dashboard settings like SMTP, the CAPTCHA secret key and rate limits can't be set from your code. Do those yourself.
FAQ
Why does Supabase say "email rate limit exceeded"? You're probably on the built-in email sender, which allows 2 auth emails per hour for the whole project and only delivers to your team's addresses. Set up custom SMTP, then raise the email limit in Authentication → Rate Limits.
How do I increase Supabase's auth email rate limit? Set up custom SMTP (or a Send Email hook) first. The limit starts at 30 emails per hour after that, and you can raise it in Authentication → Rate Limits or through the Management API. On Lovable Cloud, use More → Users → Settings → Email → Advanced.
Does Supabase have CAPTCHA? Yes. Supabase Auth supports hCaptcha and Cloudflare Turnstile on sign-up, sign-in and password reset. Turn it on under Bot and Abuse Protection, then pass the widget's token as captchaToken in your supabase.auth calls.
Does Supabase lock an account after too many wrong passwords? The limits on Supabase's Rate Limits page are per IP address or per project, not per account. Use CAPTCHA, leaked password protection, a minimum length of 8 or more, and MFA for important accounts.
Do Supabase rate limits protect my Edge Functions? No. They cover Supabase Auth endpoints. Edge Functions and API routes that call paid APIs or send email need their own caller check and rate limit.
Launching soon? The free Quick Check looks at your live URL in about 20 seconds for leaked keys (including secret keys that ended up in your JavaScript), exposed files, HTTPS and SEO. It doesn't sign in or test your rate limits, so use the 10-minute check above for that. The $49 Launch Check adds Supabase grants and webhook checks with a plain-English fix list. For the database side, see the Supabase RLS launch checklist. If sign-up links go to the wrong place, see auth redirects to localhost.
Sources
- Supabase docs, Rate limits (per-endpoint defaults, token bucket, 429, Authentication → Rate Limits, Management API, IP address forwarding with Sb-Forwarded-For and a secret key, Test auth flows): https://supabase.com/docs/guides/auth/rate-limits
- Supabase docs, Send emails with custom SMTP (built-in sender team-only and 2 messages/hour, not for production, example providers, 30/hour after custom SMTP, sign-up abuse and CAPTCHA as the most effective mitigation, DKIM/DMARC/SPF, separate auth and marketing email): https://supabase.com/docs/guides/auth/auth-smtp
- Supabase docs, Enable CAPTCHA protection (hCaptcha and Turnstile, Bot and Abuse Protection toggle, captchaToken, reset after each call): https://supabase.com/docs/guides/auth/auth-captcha
- Supabase docs, Password security (minimum length, required characters, leaked password protection on Pro and above, MFA): https://supabase.com/docs/guides/auth/password-security
- Supabase docs, Passwordless email logins (60-second request window, 1-hour default expiry, expiry setting and the one-day advice, effect on other email links): https://supabase.com/docs/guides/auth/auth-email-passwordless
- Supabase docs, Phone login (adjust rate limits and configure CAPTCHA to control SMS costs): https://supabase.com/docs/guides/auth/phone-login
- Supabase docs, Production checklist (own SMTP, SMTP settings location, 30/hour default with custom SMTP, older rate-limit table): https://supabase.com/docs/guides/deployment/going-into-prod
- Supabase docs, Rate limiting Edge Functions (Upstash Redis, limit by Supabase Auth user ID): https://supabase.com/docs/guides/functions/examples/rate-limiting
- Lovable docs, Email authentication for your app (Lovable Cloud email settings, 1,000/hour default up to 32,767, shared sender until custom emails, keep confirmation on, HIBP check default on): https://docs.lovable.dev/features/email-auth
- Lovable docs, Users and authentication (email sending is the only auth rate limit you can change; contact support before a launch): https://docs.lovable.dev/features/authentication
- supabase-js source, auth types and GoTrueClient (
captchaTokenoption on signUp, signInWithPassword, signInWithOtp and resetPasswordForEmail): https://github.com/supabase/supabase-js/tree/master/packages/core/auth-js/src - OWASP, Authentication Cheat Sheet (login throttling, per-account failed-login counters, CAPTCHA after a few failures): https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html
- Lovable docs, Phone authentication for your app (your SMS provider bills every message): https://docs.lovable.dev/features/phone-auth