how jwt works in spring boot?
Whenever the user wants to access a protected route or resource (an endpoint), the user agent must send the JWT, usually in the Authorization header using the Bearer schema, along with the request. When a backend server receives a request with a JWT, the first thing to do is to validate the token.