I am trying to implement JWT authorization. I have red some articles that write that we shouldn't store jwt token in the database. If It is true I have the following question How should we refresh token and how we can logout user? In simple oauth authorization I have the the following database structure and store all info about authorization in it.
| user_id | access_token | refresh_token | exprired_date |
And If I want to refresh token I just see that refresh_token in request is valid and just generate new pair access and refresh tokens and if I want to logout user I just remove token from db. But How can I do all this operations with JWT token If we shouldn't store it into db.