try to fix xbox minecraft login

This commit is contained in:
creeper123123321 2021-01-20 19:23:36 -03:00
parent f1f19e82c0
commit af09a6a3ac

View File

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