From fd63c169ed3dd3daa010dcc97413cfd6793ba4f6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Mar 2023 17:57:09 +0100 Subject: [PATCH] lib/client: encode empty SASL response as "+" --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index c6dfcb8..73223dc 100644 --- a/lib/client.js +++ b/lib/client.js @@ -470,7 +470,7 @@ export default class Client extends EventTarget { initialResp = { command: "AUTHENTICATE", params: [respStr] }; break; case "EXTERNAL": - initialResp = { command: "AUTHENTICATE", params: [base64.encode("")] }; + initialResp = { command: "AUTHENTICATE", params: ["+"] }; break; case "OAUTHBEARER": let raw = "n,,\x01auth=Bearer " + params.token + "\x01\x01";