Our great sponsors
-
supabase-flutter
Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Btw, If you look in this repo: supabase/supabase-flutter, you'll find an example for session recovery somewhere (couldn't find the file in question when I just looked quickly)
From your explanation it looks like either the auto-refresh does not happen before the two minutes are up, or the session is not persisted/restored properly. Are you setting up the client without auto-refresh? Maybe you can compare the code with this code sample here, it worked fine for me,