Change Auth rate limits
Change the Supabase Auth rate limits that are customizable, so your project allows the request rates your app needs.
Prerequisites
To use the Management API, you need a personal access token.
Change a limit
Change limits in the Dashboard or with the Management API. Both change the same settings.
In the Dashboard
In your project, open Authentication > Rate Limits and change the limits you need.
With the Management API
To read and update rate limits from your terminal, run the following commands:
# Get your access token from https://supabase.com/dashboard/account/tokensexport SUPABASE_ACCESS_TOKEN="your-access-token"export PROJECT_REF="your-project-ref"# Get current rate limitscurl -X GET "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \ -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \ | jq 'to_entries | map(select(.key | startswith("rate_limit_"))) | from_entries'# Update rate limitscurl -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_anonymous_users": 10, "rate_limit_email_sent": 10, "rate_limit_sms_sent": 10, "rate_limit_verify": 10, "rate_limit_token_refresh": 10, "rate_limit_otp": 10, "rate_limit_web3": 10 }'Next steps
To keep going, use these pages:
- Forward end-user IP addresses: rate limit by your end user's IP address when a server calls Supabase Auth for them.
- Test auth flows: test email and phone sign-in without hitting the email and SMS sending limits.
Related resources
To look up each limit, see this page:
- Auth rate limits: each limit, what it's counted by, and whether you can change it.