This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for PrismarineJS/prismarine-auth#96.
- Loading branch information
Showing
3 changed files
with
282 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/prismarine-auth/src/TokenManagers/MinecraftJavaTokenManager.js b/node_modules/prismarine-auth/src/TokenManagers/MinecraftJavaTokenManager.js | ||
index 2c1294e..18105bd 100644 | ||
--- a/node_modules/prismarine-auth/src/TokenManagers/MinecraftJavaTokenManager.js | ||
+++ b/node_modules/prismarine-auth/src/TokenManagers/MinecraftJavaTokenManager.js | ||
@@ -94,7 +94,7 @@ class MinecraftJavaTokenManager { | ||
async fetchEntitlements (accessToken) { | ||
debug(`[mc] fetching entitlements with ${accessToken.slice(0, 16)}`) | ||
const headers = { ...fetchOptions.headers, Authorization: `Bearer ${accessToken}` } | ||
- const entitlements = await fetch(Endpoints.MinecraftServicesEntitlement, { headers }).then(checkStatus) | ||
+ const entitlements = await fetch(Endpoints.MinecraftServicesEntitlement + `?requestId=${crypto.randomUUID()}`, { headers }).then(checkStatus) | ||
debug(`[mc] got entitlement response: ${entitlements}`) | ||
return entitlements | ||
} | ||
diff --git a/node_modules/prismarine-auth/src/common/Constants.js b/node_modules/prismarine-auth/src/common/Constants.js | ||
index fa365b7..9a4e7e9 100644 | ||
--- a/node_modules/prismarine-auth/src/common/Constants.js | ||
+++ b/node_modules/prismarine-auth/src/common/Constants.js | ||
@@ -12,7 +12,7 @@ module.exports = { | ||
XstsAuthorize: 'https://xsts.auth.xboxlive.com/xsts/authorize', | ||
MinecraftServicesLogWithXbox: 'https://api.minecraftservices.com/authentication/login_with_xbox', | ||
MinecraftServicesCertificate: 'https://api.minecraftservices.com/player/certificates', | ||
- MinecraftServicesEntitlement: 'https://api.minecraftservices.com/entitlements/mcstore', | ||
+ MinecraftServicesEntitlement: 'https://api.minecraftservices.com/entitlements/license', | ||
MinecraftServicesProfile: 'https://api.minecraftservices.com/minecraft/profile', | ||
MinecraftServicesReport: 'https://api.minecraftservices.com/player/report', | ||
LiveDeviceCodeRequest: 'https://login.live.com/oauth20_connect.srf', |