I am trying to figure out how to get the following behavior.
The web app has a login functionality and the rest of the pages are behind the login. I have enabled “Private Access” to authenticated users only. All the traditional functioning works well.
but let’s say a user is logged out and he/she refreshes the page they were on earlier. The app does not redirect the user to the login page. It simply shows the page with no data displayed (or some data displayed like nav bar etc.).
How can I redirect users to login page if auth token has expired. I probably missed some setting or a workflow.
Can anyone help?
I am thinking about Global workflow with an onload trigger. And it checks every time a page loads. But that is making the app a bit slow to load pages. Especially since we do not have page load animations, it makes it really frustrating for the users.
@weweb-team if there are any built in functions, which I am not aware of, please let me know.
Probably a good feature to add including the page change animation