mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-04 09:30:00 +01:00
try to fix xbox minecraft login
This commit is contained in:
parent
f1f19e82c0
commit
af09a6a3ac
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user