diff options
author | Jakob Stendahl <jakobste@uio.no> | 2021-10-03 17:06:28 +0200 |
---|---|---|
committer | Jakob Stendahl <jakobste@uio.no> | 2021-10-03 17:06:28 +0200 |
commit | 950d093ca54366ce49164370325062afd061cf9d (patch) | |
tree | f9eec363e7863206c2fb512d201d40c51c678bc4 | |
parent | 5cc8e0a8ed605a15b95b707b9d1b805f32271e3f (diff) | |
download | Luxcena-Neo-950d093ca54366ce49164370325062afd061cf9d.tar.gz Luxcena-Neo-950d093ca54366ce49164370325062afd061cf9d.zip |
:bug: Fix small auth bug
-rw-r--r-- | src/SocketIO/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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} }; |