From 950d093ca54366ce49164370325062afd061cf9d Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sun, 3 Oct 2021 17:06:28 +0200 Subject: :bug: Fix small auth bug --- src/SocketIO/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SocketIO/index.js b/src/SocketIO/index.js index fdaad56..8d06947 100644 --- a/src/SocketIO/index.js +++ b/src/SocketIO/index.js @@ -82,7 +82,7 @@ function createOpenSocketNamespace(io) { } session_tokens[token] = { - expire: (~~(Date.now()) / 1000)+(86400), + expire: (~~Date.now())+(86400), host: socket.handshake.headers.host, user: {username: user.username} }; -- cgit v1.2.3