diff --git a/src/main/resources/web/auth_ms.js b/src/main/resources/web/auth_ms.js index c446496..d129878 100644 --- a/src/main/resources/web/auth_ms.js +++ b/src/main/resources/web/auth_ms.js @@ -59,7 +59,7 @@ function refreshTokenMs(username) { if (!isSuccess(mcResponse.status)) throw "mc response not success"; return mcResponse.json(); }).then(json => { - fetch(getCorsProxy() + "https://api.minecraftservices.com/minecraft/profile", { + return fetch(getCorsProxy() + "https://api.minecraftservices.com/minecraft/profile", { method: "get", headers: {"content-type": "application/json", "authorization": "Bearer " + json.access_token}}).then(profile => { if (profile.status == 404) throw "no profile"; if (!isSuccess(profile.status)) throw "profile response not success";