--- title: 'Auth rate limits' description: 'Look up the rate limits Supabase Auth applies to each endpoint, including emails, SMS, sign-ins, OTPs, token requests, and MFA, and how each limit is counted.' --- Look up the rate limit on a Supabase Auth endpoint, and whether you can change it. Check this page when Supabase Auth returns any of the following: - A `429 Too Many Requests` status code - An `over_request_rate_limit`, `over_email_send_rate_limit`, or `over_sms_send_rate_limit` error code To change a limit, see [Change Auth rate limits](/docs/guides/auth/rate-limits/change). ## Limits by endpoint The following table lists each limit, what it's counted by, and whether you can change it. <$Partial path="auth_rate_limits.mdx" /> ## Rate limit behavior The following notes apply to the limits in the table: - Endpoint operations limited by IP address use a token bucket algorithm. The rate limit defines the rate at which the bucket is refilled. - Most buckets have a maximum capacity of 30 requests, so a client that has been idle can send a brief burst of up to 30 requests. [Anonymous sign-ins](/docs/guides/auth/auth-anonymous) are an exception: the bucket capacity matches the configured number of anonymous sign-ins per hour. - Once a bucket empties, requests are rate limited until tokens refill. Sustained requests above the rate limit are denied with a **429 Too Many Requests** error. ## IP address forwarding By default, Supabase Auth uses the IP address of the client for rate limiting. With IP address forwarding, it uses the end-user IP address in the `Sb-Forwarded-For` header instead, such as when a server-side framework or proxy in front of your project calls Supabase Auth for your users. The following conditions apply: - Requests must use a [secret API key](/docs/guides/getting-started/api-keys). Publishable API keys and legacy `anon` and `service_role` API keys are not supported. - IP address forwarding must be explicitly enabled for new projects. To turn it on, see [Forward end-user IP addresses](/docs/guides/auth/rate-limits/ip-forwarding). ## Related resources To change these limits or work within them, see these pages: - [Change Auth rate limits](/docs/guides/auth/rate-limits/change): change a limit in the Dashboard or with the Management API. - [Forward end-user IP addresses](/docs/guides/auth/rate-limits/ip-forwarding): rate limit by your end user's IP address when a server calls Supabase Auth for them. - [Test auth flows](/docs/guides/auth/testing-auth-flows): test email and phone sign-in without hitting the email and SMS sending limits. The other limits on this page apply to tests too. - [Auth error codes](/docs/guides/auth/debugging/error-codes): every error code Supabase Auth returns, including the rate limit ones.