Validation before the application loads

Hello guys, i need to do some validation before the application loads a few pages, which could be the Home page or the Login page.  I am storing the user in the browser's localStorage, so the validation is as follows, if my localStorage has a user, I send that user to the Home page, otherwise, I send it to the Login page. In the picture above, I created a "PreLogin" page to do the validation via a Nanoflow. The validation consists of using the "GetStorage item object" activity to check if there is a user in localStorage, if there is, it redirects the pages.
0 answers