token verification question
Hello, Currently I am verifying the user token on the page load and page show events. If event is returned unsuccessful it navigates the user to the Sign In page. To test I clear the Token that is stored in local storage and then try to bypass the login page, the page I navigate to will show for a second or 2 then I will be taken to the Sign In page. This is as expected with no valid token and seems to work. My question is how would you suggest to manage this check better and on what event would be best? If user tries to bypass the login screen and go directly to another page I would like for the page to not show at all, even for a sec, before the user is taken to the sign in page. Thank you for any suggestion.