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

Make it easier to reuse auth tokens (create a module to store them in profile files ?) #401

Closed
nomsi opened this issue Mar 4, 2016 · 8 comments

Comments

@nomsi
Copy link

nomsi commented Mar 4, 2016

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.

@rom1504
Copy link
Member

rom1504 commented Mar 4, 2016

We recently had that same problem in circle ci testing (PrismarineJS/node-minecraft-protocol#372), I think that's a change mojang made recently.
I think the mojang server is just unhappy about too frequent connections.

One way to avoid the problem would be using access token instead of the password everytime (like the vanilla client does)

@rom1504 rom1504 changed the title Mojang Authentication Make it easier to reuse auth tokens (create a module to store them in profile files ?) Mar 18, 2016
@Cecer
Copy link
Contributor

Cecer commented Apr 20, 2016

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.

@pqml
Copy link

pqml commented Apr 24, 2016

Hey, I just made a module to deal easily with tokens if you want :
https://github.com/pqml/prismarine-tokens

it should works with minecraft-protocol and mineflayer.

@roblabla
Copy link
Member

Looks cool. Just a nitpick : in your callbacks, always put the error first!
Otherwise it breaks some tools or libraries that makes error handling
easier.
On Apr 24, 2016 9:34 AM, "Hugo" [email protected] wrote:

Hey, I just made a module to deal easily with tokens if you want :
https://github.com/pqml/prismarine-tokens

it should works with minecraft-protocol and mineflayer.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#401 (comment)

@pqml
Copy link

pqml commented Apr 24, 2016

Thanks for the feedback! I updated it with proper error handling

@rom1504
Copy link
Member

rom1504 commented Dec 28, 2020

done now

@rom1504 rom1504 closed this as completed Dec 28, 2020
@unixfox
Copy link

unixfox commented Jan 2, 2021

@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.

@rom1504
Copy link
Member

rom1504 commented Jan 2, 2021

This is done by default with mineflayer now. The tokens are saved in your minecraft folder, the same that the launcher uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants