In this video, we add route protection with a dummy authentication. This authentication was implemented using the HOC and Provider Pattern.
As an extra, we handled redirection after login to an initial route. Like in the case of a call to action button on an email directing users to a specific protected route, taking into consideration url redirection attacks.
Checkout the source code on github: https://github.com/frankly034/redirec...