aboutsummaryrefslogtreecommitdiff
path: root/src/SocketIO/index.js
diff options
context:
space:
mode:
authorJakob Stendahl <jakobste@uio.no>2021-10-03 17:06:28 +0200
committerJakob Stendahl <jakobste@uio.no>2021-10-03 17:06:28 +0200
commit950d093ca54366ce49164370325062afd061cf9d (patch)
treef9eec363e7863206c2fb512d201d40c51c678bc4 /src/SocketIO/index.js
parent5cc8e0a8ed605a15b95b707b9d1b805f32271e3f (diff)
downloadLuxcena-Neo-950d093ca54366ce49164370325062afd061cf9d.tar.gz
Luxcena-Neo-950d093ca54366ce49164370325062afd061cf9d.zip
:bug: Fix small auth bug
Diffstat (limited to 'src/SocketIO/index.js')
-rw-r--r--src/SocketIO/index.js2
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}
};