title: How to store Json Web Token in mongodb using node express
body: <p>I tried to implement jwt(JsonWebToken) into node express through mongodb. In the time of generating the token I store the token value into database collection and retrieve token from mongodb and pass it to the next pages And also set a logout option, When I trigger the logout the the token field in the database is got flushed and no more actions performed after this. But the problem is when more than one users logged in the application it is not possible.Because when I clicked logout it clears all the tokens. How can I solve this correctly..?</p>