No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
manpreet
Best Answer
2 years ago
I have made authentication, I use express-sessions and passports. so when the user login will save the session on the server. to access the route requires this session. the session that I created I saved it in redux store and when I checked
getInitialProps
there wasreduxStore
I want to use this as a reference if the user is not logged in, it will redirect to the login page.In this case the url has changed but I cant access.
I cant use
'next/router'
because Router only can access on client._app.js