Hey so I have simple auth and I want my index page to be only for users that are logged in and instead of redirecting them to the login page I want them to be redirected to my welcome page. All other pages that they are not authorized to use i want them still sent to the login page. It is only different for my index page. I tried doing an if statement and a redirect in the index.js route but nothing seems to work. I would really appreciate the help. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire