summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 22:57:57 +0100
committerRory& <root@rory.gay>2025-12-17 22:57:57 +0100
commit88c20e5e92760eb369c000973ffec1ea2022384a (patch)
tree3f345ee20159c10a1c48ca7c919bd2fbf6aebc51
parentRemove dead code from identify (diff)
downloadserver-ts-88c20e5e92760eb369c000973ffec1ea2022384a.tar.xz
Remove more dead code
-rw-r--r--src/gateway/opcodes/Identify.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 357b59de..89c902e0 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -66,16 +66,6 @@ function logAuth(message: string) { console.log(`[Gateway/Auth] ${message}`); } -const tryGetUserFromToken = async (...args: Parameters<typeof checkToken>) => { - logAuth("Checking token"); - try { - return (await checkToken(...args)).user; - } catch (e) { - console.log("[Gateway] Error when identifying: ", e); - return null; - } -}; - export async function onIdentify(this: WebSocket, data: Payload) { const totalSw = Stopwatch.startNew(); const taskSw = Stopwatch.startNew();