by In order to understand authorization, we will be taking an example of user interaction with Gmail.

For this, the user will be sending HTTP requests to the Gmail server and in response will expect the response from Gmail Server.

Corresponding to this session id it will store in memory all the user information that is needed by the Gmail server for recognizing the user and allowing it perform operations.

We make use of the JWT for authorization so the server will know that the user is already authenticated and so the user does not need to send the credentials with each and every request.

Related Articles