Skip to content
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

Microsoft login Error : Failed to acquire authorization code from device token (invalid_grant) #3527

Closed
Hitokii opened this issue Dec 15, 2024 · 4 comments

Comments

@Hitokii
Copy link

Hitokii commented Dec 15, 2024

Versions

  • mineflayer: 4.23.0
  • server: vanilla 1.20
  • node: 23.1.0

Detailed description of a problem

I've been trying to log in an alt account, but every time i start node i get a microsoft link with ID and stuff, but when i log into the correct account and verify the code i get this in term (keep spamming):

image

What did you try yet?

Tried to log in again and again.
Tried to remove login cache from .minecraft

Your current code

const mineflayer = require('mineflayer')

const client = mineflayer.createBot({
  host: 'localhost',
  username: "Lys_Radiata",
  auth: 'microsoft',
})

client.on('error', err => {console.log(err)})

Expected behavior

See my bot log in my minecraft localhost server shared on 25565

@Hitokii Hitokii added possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Dec 15, 2024
@Hitokii
Copy link
Author

Hitokii commented Dec 15, 2024

Downgrading to an olderversion seems to have fixed it ?

@extremeheat
Copy link
Member

"Old version" of what?

@Hitokii
Copy link
Author

Hitokii commented Dec 15, 2024

"Old version" of what?

Minecraft version... it's unlogical, but it the only way i got it working ??

@extremeheat
Copy link
Member

Minecraft version has no impact on auth, which happens before any connection attempt to the server. If your issue was fixed on its own it was probably a temporary auth issue or something with your account.

@extremeheat extremeheat removed possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants