UI fixes
This commit is contained in:
@@ -16,10 +16,8 @@ async function authIO(socket, next){
|
||||
try{
|
||||
let token = await Auth.checkToken(socket.handshake.auth.token || 0);
|
||||
socket.user = await token.getUser();
|
||||
console.log('socket is good!')
|
||||
next();
|
||||
}catch(error){
|
||||
console.log('reject for', socket.handshake.auth.token)
|
||||
next(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user