Remove unused socket.decoded

This commit is contained in:
James Deacon 2022-01-17 17:56:00 +00:00
parent b1f6b8c6c7
commit 12a741db39

View file

@ -36,7 +36,6 @@ function startIO(app) {
if(socket.handshake.query && socket.handshake.query.token) {
jsonwebtoken.verify(socket.handshake.query.token, config.AUTH_SECRET_KEY, function(err, decoded) {
if(err) return next(new Error("Authentication error: Invalid JWT"));
socket.decoded = decoded;
next();
})
} else {