-
-
Notifications
You must be signed in to change notification settings - Fork 919
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
Make it easier to reuse auth tokens (create a module to store them in profile files ?) #401
Comments
We recently had that same problem in circle ci testing (PrismarineJS/node-minecraft-protocol#372), I think that's a change mojang made recently. One way to avoid the problem would be using access token instead of the password everytime (like the vanilla client does) |
I can confirm that Mojang has indeed started stepping up on security to fight the amount of stolen accounts. This has resulted in many issues for myself regarding authentication. |
Hey, I just made a module to deal easily with tokens if you want : it should works with minecraft-protocol and mineflayer. |
Looks cool. Just a nitpick : in your callbacks, always put the error first!
|
Thanks for the feedback! I updated it with proper error handling |
done now |
@rom1504 Could you explain how to auto save tokens? The lib https://github.com/pqml/prismarine-tokens was very handy because it did the job for me, but I only see the ability to pass tokens myself and not auto save of tokens in the API docs. |
This is done by default with mineflayer now. The tokens are saved in your minecraft folder, the same that the launcher uses |
Each time I run my bot (a web client) on my Canada Dedicated Server, then run it on my home server Mojang will automatically reset my password due to "suspicious activity".
Test results: 10 different people had to reset their passwords.
The text was updated successfully, but these errors were encountered: