mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-25 14:15:02 +00:00
Remove more dead code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user