when i read the documentation of JWT, I understood that we do not need to use session for saving user data because it is encrypted in the request header and actually JWT is stateless.
But I want to remove JWT token, if my user is deactivate..
In this case, in my JWK middle-ware, after validating the Token i have to get a query in my mongoDB for checking if that user is active or deactive.
so it is not stateless and on the other hand it is a big overload for mongoDB because mongoDB is not good database for saving session!! so i need Redis.. and if I want to use Redis what is difference between session and cookie and JWT?