From af09a6a3acbead10e2ec2f07acc6d76da0956e59 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Wed, 20 Jan 2021 19:23:36 -0300 Subject: [PATCH] try to fix xbox minecraft login --- src/main/resources/web/auth_ms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/web/auth_ms.js b/src/main/resources/web/auth_ms.js index ed6b01d..c446496 100644 --- a/src/main/resources/web/auth_ms.js +++ b/src/main/resources/web/auth_ms.js @@ -53,7 +53,7 @@ function refreshTokenMs(username) { return xstsResponse.json(); }).then(json => { return fetch(getCorsProxy() + "https://api.minecraftservices.com/authentication/login_with_xbox", {method: "post", - body: JSON.stringify({identityToken: "XBL3.0 x=" + json.DisplayClaims.xui.uhs + ";" + json.Token}), + body: JSON.stringify({identityToken: "XBL3.0 x=" + json.DisplayClaims.xui[0].uhs + ";" + json.Token}), headers: {"content-type": "application/json"}}); }).then(mcResponse => { if (!isSuccess(mcResponse.status)) throw "mc response not success";