Supabase Email Rate Limit Exceeded: How to Fix It

2 emails per hour is the built-in Supabase Auth email allowance, so “email rate limit exceeded” usually means sign-up confirmations, magic links, password resets, or resend tests have exhausted that quota. Supabase returns an HTTP 429 Too Many Requests response when an Auth limit is exceeded. The fix is to stop duplicate sends, respect the user cooldown, then use custom SMTP or a Send Email hook for production delivery.

Use this table to separate an email quota problem from an IP-based Auth limit or a Flutter UI issue.

Symptom Likely Cause Fix
It happens after testing sign-up, password reset, or magic links The built-in email provider allowance is exhausted Stop repeated tests and configure custom SMTP or a Send Email hook for production
A user taps Send Again repeatedly The same-user email cooldown is blocking another request Disable the button and show a retry countdown
Many users fail at once from a server-rendered app or proxy Auth requests are being grouped under the server IP address Configure trusted IP forwarding for server-side Auth calls
The error appears unexpectedly More than one Auth flow is sending emails Audit sign-up, recovery, resend, OTP, magic-link, and user-update calls
Flutter keeps showing the error The app retries automatically after a 429 Handle the error once, stop retrying, and let the user request a new email later

What Supabase Email Rate Limit Exceeded Means

Supabase Auth rate limits protect authentication endpoints from accidental loops, abusive traffic, and bulk email sending. An email rate limit error does not necessarily mean your email provider failed to deliver a message. It means Supabase rejected a new Auth email-send request before it could proceed.

Treat this as a request-volume problem first, not an inbox-delivery problem.

With Supabase’s built-in email provider, Auth allows 2 emails per hour. That limit is intentionally low for development and early testing. It is not a suitable production delivery setup for an app that sends account confirmations, password recovery links, magic links, or one-time passcodes.

The Auth email-send allowance can be consumed by these routes:

  • /auth/v1/signup
  • /auth/v1/recover
  • /auth/v1/resend
  • /auth/v1/magiclink
  • /auth/v1/otp
  • /auth/v1/user

That last route matters when a user-update flow triggers an email, such as an email-address change confirmation. Do not audit only sign-up calls; a password reset button, OTP form, or automatic resend logic can use the same Auth email capacity.

Current Auth limits and configurable settings are available in the Supabase Dashboard under Authentication > Rate Limits.

How to Fix Supabase Email Rate Limit Exceeded

Stop duplicate Auth email requests, enforce the 60-second cooldown, and configure custom SMTP or a Send Email hook with an appropriate limit.

Step 1: Stop Duplicate Email Requests and Find the Caller

First, prevent the failing screen from generating more requests.

  1. Disable the submit button while the sign-up, magic-link, OTP, resend, or password-recovery request is in progress.
  2. Remove automatic retries for Auth email methods. A retry loop can consume the remaining allowance quickly.
  3. Use your browser network panel, Flutter logs, or server logs to identify which Auth request receives the 429 response.
  4. Search your codebase for every email-producing Auth action, including sign-up, password recovery, OTP login, magic-link login, resend actions, and email-change flows.
  5. Check whether development, staging, and production clients are using the same Supabase project. Shared projects also share the project’s Auth configuration and email usage.

A common bug is having both a form submit handler and a button onPressed handler invoke the same Auth method. Another is calling a resend method automatically when a page rebuilds or an app resumes.

Step 2: Respect the Per-User Email Cooldown

Supabase Auth defaults to a 60-second window before a new email request is allowed for the same user. For example, after requesting a password-reset email, do not let the user request another one immediately.

Build the cooldown into the interface:

  1. After a successful email-send request, disable the relevant button.
  2. Show a clear message such as: “Email sent. You can request another email in 60 seconds.”
  3. Re-enable the button only when the countdown ends.
  4. If Supabase returns 429, show the same cooldown behavior instead of attempting another request automatically.

The cooldown protects one user flow, but it does not replace the hourly project-level email allowance. A user may wait 60 seconds and still be blocked if the project has exhausted its built-in provider quota.

Step 3: Configure Production Email Delivery

For a real application, use either custom SMTP or a Send Email hook. These are the Supabase-supported delivery methods that allow you to configure the Auth email-send limit.

After connecting a custom SMTP provider, Supabase starts with an email-send limit of 30 requests per hour and a burst capacity equal to the configured limit. Confirm the actual setting for your project in Authentication > Rate Limits, especially if you have changed it or are using a Send Email hook.

Choose the delivery path that fits your architecture:

  • Custom SMTP: Supabase Auth sends its templates through your SMTP provider. This is usually the simplest option when you already have a transactional email provider.
  • Send Email hook: Supabase calls your hook, and your application controls how the message is delivered. This is useful when email delivery must pass through your own service, queue, template system, or provider abstraction.

After enabling either method:

  1. Open the Supabase Dashboard.
  2. Go to Authentication > Rate Limits.
  3. Review the email-send limit and set a value that your email provider and expected traffic can support.
  4. Send one sign-up or password-recovery email to a test address.
  5. Confirm that the message arrives and that the Auth request completes without a 429.

Do not raise the Auth limit beyond what your mail provider, hook implementation, and abuse controls can safely handle. A higher rate limit will not fix a duplicate-request bug; it only allows the bug to send more email.

Step 4: Update the Limit Through the Management API When Needed

Dashboard settings are the simplest option. For infrastructure automation, use the Supabase Management API to inspect or update the project Auth configuration.

Run this request from a trusted local shell or CI environment after setting PROJECT_REF and SUPABASE_ACCESS_TOKEN:

curl -X GET "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
  -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN"

The response lets you inspect the project’s Auth configuration, including rate-limit fields. To update the email-send limit, PATCH the rate_limit_email_sent field. This example sets it to 30 requests per hour:

curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
  -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rate_limit_email_sent": 30}'

Do not place a Supabase Management API access token, secret API key, or project-management request in a Flutter app.

Step 5: Test One Email Flow at a Time

Once you have changed the delivery method or rate configuration, test deliberately rather than rapidly clicking through every Auth screen.

  1. Use a test email address that is not currently under a resend cooldown.
  2. Trigger one Auth action, such as sign-up or password recovery.
  3. Confirm the client receives a successful response.
  4. Confirm the email arrives with the expected link or code.
  5. Verify that the UI disables resends briefly and handles a rejected request without looping.
  6. Repeat for each email-producing flow your app exposes.

This final test matters because a custom SMTP configuration can work while a Flutter screen still sends duplicate requests.

Handling the Error in Flutter

In Flutter, handle this as an Auth failure with HTTP status 429 Too Many Requests. Catch the exception around the specific user action, stop the loading state, and display a message that tells the user to wait before trying again.

Your UI behavior should be consistent for signUp, password recovery, magic-link login, OTP login, resend actions, and email-change confirmation flows:

  1. Set a local isSending state before making the Auth call.
  2. Disable the action button while the request is running.
  3. Catch the Supabase Auth exception.
  4. If its HTTP status is 429, show a rate-limit message rather than the raw API error.
  5. Start or restore a 60-second resend countdown for that user action.
  6. Do not automatically call the Auth method again.
  7. Clear isSending after success or failure so the interface does not remain stuck.

A useful message is: “Too many email requests were sent. Please wait before requesting another email.”

Avoid using broad retry packages around Auth email methods unless you explicitly exclude 429 responses. Retrying network failures can make sense for some read operations, but retrying a rate-limited email send usually makes the failure last longer.

Also make the action idempotent at the UI level. A single tap should produce a single request, even if a user taps rapidly, the device reconnects, or a widget rebuilds.

Fixing Rate Limits Behind a Server or Proxy

Email quotas are only one type of Supabase Auth rate limit. Many Auth endpoint limits are evaluated by client IP address. Supabase uses a token-bucket approach for these limits, and most IP-based buckets have a maximum capacity of 30 requests. A short burst can succeed after a quiet period, while sustained traffic from the same IP can begin receiving 429 responses.

This can affect apps that call Supabase Auth from:

  • Next.js, Nuxt, or other server-side rendering frameworks
  • API gateways
  • Reverse proxies
  • Edge functions or backend services
  • Shared NAT networks
  • A server that acts on behalf of many end users

If all Auth requests appear to come from your server, many users can be counted against the same server IP. For trusted server-side calls, Supabase supports forwarding the end-user address with the Sb-Forwarded-For header.

To use it safely:

  1. Enable IP forwarding in the IP Address Forwarding section of Authentication > Rate Limits.
  2. Send the Sb-Forwarded-For header only from trusted server infrastructure.
  3. Set it to the real end-user IP address.
  4. Make the Auth request with a secret API key; publishable keys and legacy anon or service_role keys do not support this forwarding feature.
  5. Strip or overwrite any client-supplied forwarded-IP header at your proxy so users cannot forge another visitor’s address.

Do not add Sb-Forwarded-For directly from Flutter or browser JavaScript. A client-controlled header cannot be trusted for rate-limiting decisions.

Confirm the Fix and Prevent It Returning

Use this checklist after changing the app or Supabase configuration:

  • [ ] One button press produces one Auth request in logs or the network panel.
  • [ ] A second request from the same user is blocked by the interface during the cooldown.
  • [ ] A 429 response produces a helpful message, not an endless spinner or raw exception.
  • [ ] Sign-up, reset-password, resend, OTP, magic-link, and email-update flows have been tested.
  • [ ] Production uses custom SMTP or a Send Email hook rather than the built-in provider.
  • [ ] The email-send setting in Authentication > Rate Limits matches your expected traffic and delivery-provider capacity.
  • [ ] Server-side Auth calls forward trusted end-user IPs when appropriate.

Monitor Auth errors after deployment. A sudden rise in 429 responses usually points to a new UI loop, a broken background job, a bot pattern, or a server-side deployment that changed how client IPs are passed through.

Frequently Asked Questions

What does Supabase email rate limit exceeded mean?

It means Supabase Auth rejected an email-producing request because the allowed request rate was exceeded. With the built-in provider, Supabase allows 2 emails per hour, and the limit can be consumed by sign-up confirmations, password resets, magic links, OTPs, resends, and some user-update flows.

How do I fix email rate limit exceeded in Supabase Flutter?

Handle the 429 Too Many Requests Auth response, disable the request button, and prevent automatic retries. For the same user, use a 60-second resend cooldown, then configure custom SMTP or a Send Email hook if the app needs production-level email delivery.

Can I increase the Supabase email limit?

Yes, but only when using custom SMTP or a Send Email hook. Configure the setting in Authentication > Rate Limits or update the project Auth configuration through the Management API with the rate_limit_email_sent field.

Does Supabase handle authentication emails?

Yes. Supabase Auth can send confirmation emails, password-recovery emails, magic links, OTPs, resend emails, and certain user-update emails. The built-in provider is useful for limited development testing, while custom SMTP or a Send Email hook is the appropriate path for production delivery.

Why am I rate limited when different users are signing in?

Your server or proxy may be making all Auth requests appear to come from one IP address. Enable trusted IP forwarding in Authentication > Rate Limits and have your server send Sb-Forwarded-For with the end user’s IP address using a secret API key.