From b0e7a80f347badb28b2a21b5ec877fb0e86ec0b8 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 30 Jun 2021 21:58:10 +0200 Subject: :arrow_up: update checkToken usage --- src/opcodes/Identify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit 1.5.1