Updated frontend

This commit is contained in:
2026-07-01 11:10:09 -04:00
parent ee21bdbf22
commit 5644bfa5ec
8104 changed files with 14976 additions and 386337 deletions
+11 -1
View File
@@ -15,4 +15,14 @@ async function auth(req, res, next){
}
}
module.exports = {auth};
async function authIO(socket, next){
try{
let token = await Auth.checkToken(socket.handshake.auth.token || 0);
socket.user = await token.getUser();
next();
}catch(error){
next(error);
}
}
module.exports = {auth, authIO};