From 3139e18cce5d50d062b5444df18d2930e3c99ad1 Mon Sep 17 00:00:00 2001 From: ahmetkosker Date: Tue, 10 Feb 2026 23:41:13 +0300 Subject: [PATCH] fix(server): process pending auth requests in FIFO order --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index 306d6584..47a7305f 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1256,7 +1256,7 @@ class Client extends EventEmitter { } else { proto.authFailure(methodsLeft, isPartial); if (pendingAuths.length) { - authCtx = pendingAuths.pop(); + authCtx = pendingAuths.shift(); if (listenerCount(this, 'authentication')) this.emit('authentication', authCtx); else