Hello, i am trying to make a secure login system to my website. I have completed Login and Signup so the user get saved to Auth page and Database. I am trying to secure some of my pages so you want access it without being logged in. I also want to make it so if the user is loggedin and trying to go to login or signin page he gets dedirectet to home page. I have made 2 maps, one Auth and one Root and wounder if there is any way to secure the folder and all the pages in it? What is the easiest way to make it work?
Thanks for the help, i am new to NextJS
Recommended threads
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Get Started - Web is broken
Trying to complete the get started tasks since the "66%" was finally getting to me, and clicked on "web", was met with: ``` Uncaught TypeError: Cannot read prop...
- Database AI Column Suggestion Use Case
I tried using the AI column suggestion feature. For me, I prefer writing my column design separately in a notepad. Then my intention is to paste it into the AI ...