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

Supply MSA bearer token directly #1323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SinanAkkoyun
Copy link

@SinanAkkoyun SinanAkkoyun commented Aug 30, 2024

This PR enables one to supply the MSA bearer token directly (which simplifies a lot for users who do not want to rely on the cache system)

Dependent on: PrismarineJS/prismarine-auth#108

Enables:

const bot = mineflayer.createBot({
  ...
  auth: 'microsoft',
  msaToken: 'abcd...'
})

@SinanAkkoyun
Copy link
Author

I just realized that the msa token goes invalid after a day or so, so this PR can be closed. I would, however, be very thankful for help on using the createBot session and access token parameters as I was not able to get that working

@SinanAkkoyun
Copy link
Author

I implemented the auth flow for refreshing those tokens (Essential Mod auth flow) and would like to publish and use that code. For that, I would appreciate if this PR could be merged

@SinanAkkoyun SinanAkkoyun reopened this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

Successfully merging this pull request may close these issues.

1 participant