I have a scenario like this. I have two microservices like A and B.
A is responsible for login and creating a JWT. When creating this JWT we generate a session and stored in the redis. and this session Id injected into the JWT payload.
B is responsible for validate JWT and get the session Id from the JWT and validate it as well.
In service B How to fetch session to validate? or is there any best way to do this?