Overview
Authentication providers implement rate limiting to prevent abuse and ensure service stability. During testing, these limits can impact:- Parallel test execution
- Authentication flows in tests
- Session management during long-running tests
- User signup/verification processes
Supabase Rate Limits
Supabase provides comprehensive rate limiting controls that are particularly important when running parallel tests against free or limited tier instances.Accessing Supabase Rate Limits
- Navigate to your Supabase project dashboard
- Go to Authentication → Rate Limits in the sidebar
- Configure the various rate limit settings
Rate Limit Settings
Email Rate Limits
- Purpose: Controls how many emails can be sent per hour
- Default: 500 emails per hour
- Testing Impact: Affects signup/verification flows in tests
- Recommendation: Increase if tests involve many user registrations
Token Refresh Rate Limits
- Purpose: Controls session refreshes in 5-minute intervals per IP
- Default: 300 refreshes per 5 minutes (3600 requests per hour)
- Testing Impact: High impact - Can cause session logouts during long-running tests
- Recommendation: Increase significantly for parallel testing (e.g., 1000-5000)
Supabase-Specific Notes
- Rate limit changes take effect immediately
- Some limits are per IP address, others are per project
- Free tier projects have lower default limits than paid plans
- Consider upgrading to a paid plan for higher default limits
Be cautious when significantly increasing rate limits in production
environments. Higher limits reduce protection against actual abuse and DDoS
attacks.