mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
Remove unused socket.decoded
This commit is contained in:
parent
b1f6b8c6c7
commit
12a741db39
1 changed files with 0 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue