auth0/socketio-jwt — pull request #16 by yads (2014-07-16 20:15:14+00:00)
Title: socket.io returns err.data if it's available

Currently when using handshake it's hard to determine from the client side that there was an authorization error. You have to do string compare on known error messages. Returning some metadata through error.data can make detecting authorization errors easier.