You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my supabase app supports offline usage (through flutter) and oftentimes if I get reports of my users being automatically "logged out". This is because the refresh token algorithm has trouble actually getting a refresh once the internet connection has been restored. Anyways, my solution to this was to periodically refresh the token (before it's expired) and set the expiration date to 7 days (maximum).
Our users also get logged out sometimes. Often the following exception is thrown: AuthException('Access token refresh retry limit exceeded.'); GoTrueClient._setTokenRefreshTimer (gotrue_client.dart:552) GoTrueClient._callRefreshToken (gotrue_client.dart:606)
Maybe this is expected when a short expiration time is set, and the internet connection not reliable.
Activity
matthewwong525 commentedon Jan 4, 2023
So my supabase app supports offline usage (through flutter) and oftentimes if I get reports of my users being automatically "logged out". This is because the refresh token algorithm has trouble actually getting a refresh once the internet connection has been restored. Anyways, my solution to this was to periodically refresh the token (before it's expired) and set the expiration date to 7 days (maximum).
d-e-h-i-o commentedon Jan 19, 2023
Our users also get logged out sometimes. Often the following exception is thrown:
AuthException('Access token refresh retry limit exceeded.');GoTrueClient._setTokenRefreshTimer (gotrue_client.dart:552) GoTrueClient._callRefreshToken (gotrue_client.dart:606)Maybe this is expected when a short expiration time is set, and the internet connection not reliable.