diff --git a/packages/dota/src/dota/GSIServer.ts b/packages/dota/src/dota/GSIServer.ts index d89966e6..0adf08dc 100644 --- a/packages/dota/src/dota/GSIServer.ts +++ b/packages/dota/src/dota/GSIServer.ts @@ -27,7 +27,6 @@ function handleSocketAuth(socket: Socket, next: (err?: Error) => void) { // Successful authentication next() } else { - logger.info('[GSI] Invalid token, disconnecting socket') socket.emit('auth_error', 'Invalid token') // Send an auth error message if needed socket.disconnect(true) // Disconnect the socket and prevent reconnection attempts } diff --git a/packages/dota/src/dota/validateToken.ts b/packages/dota/src/dota/validateToken.ts index bd7f0ab5..ab9f6834 100644 --- a/packages/dota/src/dota/validateToken.ts +++ b/packages/dota/src/dota/validateToken.ts @@ -54,6 +54,7 @@ export function validateToken(req: Request, res: Response, next: NextFunction) { return } + invalidTokens.add(token) pendingCheckAuth.delete(token) logger.info('[GSI] io.use Error checking auth 42', { token, client }) res.status(200).json({ error: 'Invalid token, skipping auth check' })