I’m building a small app with Backand as backend service for learning purposes. I’m stuck with a basic principe… I can authenticate with my app / login. this stores an auth_token as well as an auth_status property in my provider.
But how can I listen for changes in these variables? Is there a way to add a listener, so when auth_status property in my provider changes (to false), I route the user to login page again.
If I got the concept all wrong please let me know.
Before I worked with firebase, where there was onAuthStateChanged() which made this easy…