What's the best option to protect private routes in solid js?
Hi I have a question for you guys. I am working on a SPA app in solid js. I am looking towards implementing a basic auth mechanizm. I already did in my other webapp, but it's not perfect. Can you give me some tips out here, thanks :))
I basictly want to protect some routes like
I basictly want to protect some routes like
/dashboard if user isn't logged in just yet. And if user is already logged in and it's on login page it navigates them to dashboard page :>