0% found this document useful (0 votes)
13 views3 pages

Protected Routes and Public Routes

The document outlines the creation of authentication guards for managing public and protected routes in a web application. It includes steps for creating 'PublicRoutes.jsx' and 'ProtectedRoutes.jsx' components, as well as implementing a Higher-Order Component (HOC) for authentication. The focus is on ensuring secure access to certain routes based on user authentication status.

Uploaded by

abhimanyucco
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Protected Routes and Public Routes

The document outlines the creation of authentication guards for managing public and protected routes in a web application. It includes steps for creating 'PublicRoutes.jsx' and 'ProtectedRoutes.jsx' components, as well as implementing a Higher-Order Component (HOC) for authentication. The focus is on ensuring secure access to certain routes based on user authentication status.

Uploaded by

abhimanyucco
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Protected Routes and Public Routes

1. Create AuthGaurd
1.1 [Link]

1.2 [Link]
2. Use of Auth Guard:
HOC
1. Create HOC

2. Use HOC

You might also like