diff --git a/lib/server/socket.ts b/lib/server/socket.ts index 89f79c9b4..b0dac5ad4 100644 --- a/lib/server/socket.ts +++ b/lib/server/socket.ts @@ -91,7 +91,7 @@ const socket = ({ server, loadedServerOpts }): SocketHandler => { `Validating auth for connection ${connectionIdentifier} client Id ${brokerClientId}, role ${role}`, ); const credsCheckResponse = await validateBrokerClientCredentials( - jwt, + authHeader, brokerClientId, connectionIdentifier, );