Rank 2: Process
Hello, I am struggling to find a way to find out in real time whether a account(session) is active or not, mainly to redirect users automatically to login screen, or allow access to other modules of the app.
I am using go_router for navigation, and I would like to have it take caree to redirect, by listening to changes on the account(session).
On the other hand I need to allow access to the app to users, even when the app is offline. The optimal thing would be that if the user was already authenticated before going offline, then just keep that session, and allow access. If the user has never accessed the app before going offline, the guest login option should be available to allow access.
Is any of this possible, what would be the way to use the sdk to achieve it?
The app would be used on all platforms available for Flutter.
Thanks in advance.