Pierce01 / MinecraftLauncher-core

Lightweight module that downloads and runs Minecraft using javascript / NodeJS
MIT License
361 stars 82 forks source link

Authenticator should send clientToken #19

Closed Coding-Kiwi closed 5 years ago

Coding-Kiwi commented 5 years ago

As stated in https://wiki.vg/Authentication calls to the /authenticate endpoint should include a clientToken. Currently, a clientToken is generated in the Authenticator.getAuth function, but it is not passed to the /authenticate endpoint, as a result you get an accessToken that has no associated clientToken.

Authenticator.validate does not send the clientToken, currently that is correct since the accessToken is generated without one.

Authenticator.refresh however does send the clientToken but it is ignored since the access token is generated without one. same for Authenticator.invalidate

Pierce01 commented 5 years ago

must have missed that, thanks for pointing that out! Will fix

Pierce01 commented 5 years ago

added