Re:Stop using JWT for sessions (2016)
by jjeaff on Thursday November 01, 2018 @01:43PM
(#18356469)
Probably just because web sockets tend to be used for frequent updates and jwt allows you to authenticate a user without necessarily pinging your sessions table on every single call.
[ Parent
| on HN ]
Do you have to ping auth on every websocket communication? I feel like you should be able to auth once when you open the connection, and then keep track of the intended session timeout locally (unless you expect external factors to extend that timeout I suppose).
Unless that's in regards to checking whether an auth has been blacklisted, which isn't something jwt solves, as far as I can tell.