Before starting this hour and just increased this exploration time so that it won't expire within 30
seconds for that and go to the main class and start the summer.
Meanwhile, I'll also open the login page of the application.
So now we are on to the login page of the application.
Let's try to open the console as well.
Entering the credentials of the user on submitting.
I'm able to login successfully if you go and see to the application tab.
There are no cookies right now sealed, which is one of the secure approach that we are going to follow
inside our application.
And let's try to go and see inside the network tab for user operation.
You can see here in the response I have received and header with the name Alteration and it's JWT token
so we can try taking this token and paste in the JWT website to understand what the values that we passed
and based here.
As you can see, the beauty ID card decoded.
Our header has metadata about the algorithm that we have followed and that body has all the values that
we send.
Issuer is the one who issued the token and subject of the token and what are the logged in user name
detail and his rules and authorities associated and ensure that.
What is the issue that you can see how you should act on this date and expiring is going to after three
days.
So now I try to dampen this value on the you way by putting a breakpoint in the interceptor.
So let's try to keep a breakpoint here and making an request to one of the operation.
And you can see this is my JWT token value.
I'm going to just remove one character in the middle and release the breakpoint.
Can see I got an error 500 because there is an exception happen while evaluating this stock.
And on the backend due to that error, I draw an exception and there is no response came to the user.
So this way we can protect our application using JWT tokens.
Now let's try to understand how the expiration of the token will be handled by the spring security framework
in that next world.
Thank you.
And by.