I am new to Flutter and would like to return the login screen or the home screen depending on whether the user is logged in or not. I am using auth0 for authentication and provider as the app state management solution.
I tried using context.watch but could not make it work.
You can check if the user is logged in or not, general implementation for this flow is storing the token in persistent storage but in your case AuthO provides data/persistent token by itself in
Credentials? _credentials;Here is the implementation