Redirect unauthorized user from Dashboard page to Login Page Nextjs
Budget: ₹600 – ₹1,500 INR
I want to redirect the unauthorized user from /Dashboard page to /user/login page in the Nextjs app,
I'm using Nodejs for the backend and using JWT to unauthorized the user, Signup and Login function is working fine, Want to protect the dashboard route from unauthorized users so that they can be logged in and access the dashboard.
I'm using Nodejs for the backend and using JWT to unauthorized the user, Signup and Login function is working fine, Want to protect the dashboard route from unauthorized users so that they can be logged in and access the dashboard.