Identify user based on the JWT attached with request

Yeah true, in my case I was using Socket.io technology for a game I’m developing so this was a way for me to identify via JWT. Yours is better if you’re using endpoints