#Refresh token suggestions
5 messages · Page 1 of 1 (latest)
1 - only if you are controlling user sessions with the token.
2 - I don't understand the question completely. What isn't simple. What isn't secure?
1 . I am having a control when the token is expiring, in that case, when the user from the app front send a request, 401 is sent and logout.
2- Simple/ easy to implement and basic security.
1 - You can't control when a token expires as long as it has a TTL in the future, it is valid. What you can control is removing the token from a white list or adding the token to a black list. When the token is validated, it is also validated against either being on the white list and good or on the black list and bad.
2 - JWT implementation isn't very hard, once you understand what is needed to do it right. When you know how to do it right, then it is also secure. I'm still not sure what else to tell you here.
1 - session management is usually a whitelist.