diff --git a/package-lock.json b/package-lock.json index b429fe00..7e29848b 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 754bf280..e34803b0 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "author": "Fosscord", "license": "ISC", "dependencies": { - "@fosscord/server-util": "^1.3.16", + "@fosscord/server-util": "^1.3.22", "ajv": "^8.5.0", "dotenv": "^8.2.0", "jsonwebtoken": "^8.5.1", diff --git a/src/opcodes/Identify.ts b/src/opcodes/Identify.ts index 3b007766..ab2fc301 100644 --- a/src/opcodes/Identify.ts +++ b/src/opcodes/Identify.ts @@ -32,7 +32,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { try { const { jwtSecret } = Config.get().security; - var decoded = await checkToken(identify.token, jwtSecret); // will throw an error if invalid + var { decoded } = await checkToken(identify.token, jwtSecret); // will throw an error if invalid } catch (error) { console.error("invalid token", error); return this.close(CLOSECODES.Authentication_failed);