This commit is contained in:
2024-07-31 19:43:01 -04:00
parent a173a48e43
commit 75a486251d
3 changed files with 47 additions and 39 deletions
-2
View File
@@ -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);
}
}