I have access token with short expiration (5 minutes) and refresh token.
How can I immediately revoke access token for specific user?
For example if I want to ban certain user? I clicked on ban button and now I want to revoke his access token immediately. I don't want to wait for token expiration.
I need to somehow create blacklist of tokens but if I don't know access token for specific user, how can I add it to blacklist?
Should I store all jwt tokens in database or redis? Code example would be very helpful.
Thank you