Ivan Asmer 5 lat temu
rodzic
commit
cbafeee5b2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -41,7 +41,7 @@ io.on('connection', socket => {
     });
 
     socket.on('conn', token => {
-        const decoded = jwt.verify(token, secret)
+        const decoded = verify(token, secret)
         
         if (decoded){
             gamers.push({nick: decoded.sub.login, socket: socket, id: socket.id})