- Client Server Communication
- Authentication & Authorization
- E-Commerce Application
- Authentication Flow
- Route Parameters
- history
Authentication is the process of verifying a user's identity.
Username: rahul password: rahul@2021 or Username: praneetha password: praneetha@2021
Authorization is the process of verifying whether the user is authenticated and permitted to perform some actions like accessing resources, etc.
After successful authentication, employees are only allowed to access certain resources based on their roles.
Admin can Read, Create, Delete, and Update the Resources
User can only Read and Create the Resources
When a component is rendered by the Route, some additional props are passed.
They are:
match history location
The history object has some methods to control the navigation in the browser, and it also maintains the history of the routes we navigated. It has the following methods to control the navigation in the browser: push() replace() go() goBack() goForward(), etc. The history.push() and history.replace() methods are used to navigate to other routes programmatically.
With the history.push() method, the user can go forward and backwards in the browser, and the URL will change.
**Syntax: history.push("PATH");
The history.replace() method replaces the current URL with new one. The user can't go backwards to the previous URL.
**Syntax:history.replace("PATH");