lib/client: encode empty SASL response as "+"

This commit is contained in:
Simon Ser 2023-03-21 17:57:09 +01:00
parent 2c3fbdd605
commit fd63c169ed

View file

@ -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";