I'm experiencing a critical issue with my FlutterFlow app using Supabase authentication. The app is making excessive token refresh requests (approximately one every 2 seconds) to the /auth/v1/token
endpoint while users are logged in.
After a few minutes of normal usage, users get automatically logged out with this error:
AuthException(message: Request rate limit reached, statusCode: 429, errorCode: over_request_rate_limit)
Supabase logs show tokens being revoked and recreated every ~2 seconds rather than simply being refreshed. Each request contains the auth_event
with "action":"token_revoked"
which suggests tokens are being completely replaced instead of refreshed.
Has anyone encountered this issue where FlutterFlow + Supabase integration is continuously revoking and recreating tokens instead of properly refreshing them?
I am using real-time communication as well, if that is relevant.
EDIT
It only happens on the local run. On the .apk version and TestFlight, it works fine.
Supabase Authentication Rate Limit Issue in FlutterFlow App
Database & APIs
Read the Flutter documentation.
Turning ON and OFF real-time.
Disabling and enabling RLS.
Yes
3
7 replies