In this video, I will show you some of the enhancements that I have done to the Front end application. I added the redirection of the user to the Dashboard page after login. We are also checking the authentication of the user based on the token which is saved in the cookie using a HOC (Higher Order Component).
Then, we have architected our service in a way so that the Video service is setting the Authorization header with the token which the user will get during login for the user.
#nextjs #auth token #protected routes #dashboard page