I am using JWT to generate the token for some purpose in my application. The issue is, there is a possibility of generating multiple tokens for the same user. So, to avoid this, I need to expire previous token before giving them a new token.
Can someone please help me out in, how to expire the token then and there using JAVA?