Versions
- electron-version: 39.2.3
- prismarine-auth: 2.7.0
Detailed description of a problem
(node:39776) UnhandledPromiseRejectionWarning: Error: 403 Forbidden {}
at checkStatus (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\common\Util.js:10:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async XboxTokenManager.getTitleToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\TokenManagers\XboxTokenManager.js:258:17)
at async retry.msa.forceRefresh (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:179:58)
at async retry (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:26:14)
at async MicrosoftAuthFlow.getXboxToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:166:12)
at async retry.xbl.forceRefresh (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:195:22)
at async retry (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:26:14)
at async MicrosoftAuthFlow.getMinecraftJavaToken (C:\Users\adria\Documents\Launch-mc\node_modules\prismarine-auth\src\MicrosoftAuthFlow.js:194:7)
(Use electron --trace-warnings ... to show where the warning was created)
(node:39776) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 16)
Your current code
const flow = new prismareineauth.Authflow(
generateRandomString(16),
join(__dirname, "../auth"),
{
authTitle: prismareineauth.Titles.MinecraftJava,
flow: "live",
},
(res) => {
console.log(res);
}
);
flow.getMinecraftJavaToken({ fetchProfile: true }).then(console.log);
Expected behavior
To Work
Additional context
Only happens on Titles.MinecraftJava
Versions
Detailed description of a problem
Your current code
Expected behavior
To Work
Additional context
Only happens on
Titles.MinecraftJava