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.
*Posting this without reading too much into the context, so might not be relevant for us, but wanted to get it out there for visibility.
Gotrue-js is updating their token refresh algorithm, here. Might be something worth looking into!
supabase/auth-js#564
Personally, I think the current implementation is okay though unless someone knows any issues.
The text was updated successfully, but these errors were encountered: