Middleare for Auth
Hello, I was wondering what is the best way to verify if user is logged in before showing route, I am doing a basic test right now via localStorage variable in real life I would have my state in local storage or global store saying i am logged in with an http cookie.
Is there a way so the user is not even able to see the other page before the redirect?
Is there a way so the user is not even able to see the other page before the redirect?