prometheus + load-testing
This commit is contained in:
@@ -5,7 +5,7 @@ import jwt from "jsonwebtoken";
|
||||
|
||||
export const jwtMiddleware = async (socket: Socket, next: (err?: ExtendedError) => void) => {
|
||||
try {
|
||||
const { uid } = socket.handshake.auth;
|
||||
const uid = socket.handshake.auth.uid || socket.handshake.query.uid;
|
||||
if (!uid) return new Error("Authentication error");
|
||||
/* const token = socket.handshake.auth?.token;
|
||||
if (!token) return new Error("Authentication error");
|
||||
|
||||
Reference in New Issue
Block a user