-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mineflayer error: Cant Authenticate with Microsoft #10049
Comments
Sorry I noticed the |
This is due to an incompatibility with the library "jose" and bun's KeyObject, mineflayer or prismarineJS are not at fault. |
Although this can be fixed on the prismarine-auth side by adding a compat layer like so: prismarine-auth/src/TokenManagers/XboxTokenManager.js change constructor of class XboxTokenManager to this
and import the "importSPKI" function at the top of the file with the "exportJWK"
|
exact same issue, bun v1.1.8 on Windows 11 |
This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment. |
What version of Bun is running?
1.1.2+c8d072c2a
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
Run this code with the mineflayer package installed and you get an error when you set the
auth
parameter to'microsoft'
like in the code below.The code doesn't work because somewhere down the line the code depends on the nodejs crypto module to run this function:
The function doesn't return the correct type though.
What is the expected behavior?
The code is supposed to prompt me for a microsoft login and when that is done, the bot should join the microsoft server I setup on my pc that is open on port 25565
What do you see instead?
Additional information
Mineflayer is a library that can be used to make bots for the game Minecraft. A link to Mineflayers repo can be found here: https://github.com/PrismarineJS/mineflayer
The text was updated successfully, but these errors were encountered: