Re:Don't use JSON web tokens for sessions
by mstade on Tuesday June 14, 2016 @08:24AM
(#11901522)
You don't have to use a timer, you can also do it when you're about to use the token, or after the token has been rejected if you're so inclined. I.e. before you make a request you check the validity of the token and if it's not valid you refresh it; or if you don't do this validation you'd have to deal with the server rejecting your token, doing the refresh, and then trying the original request again.
[ Parent
| on HN ]
There are no comments on this comment yet.