Supply MSA bearer token directly#1323
Supply MSA bearer token directly#1323SinanAkkoyun wants to merge 3 commits intoPrismarineJS:masterfrom
Conversation
|
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 |
|
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 |
|
thoughts @extremeheat ? |
|
This doesn't seem like a good idea to me. The auth system is designed to internally walk up the dep tree of required tokens refreshing and manage the tokens on its own as needed. Trying to inject things into that process is not good. Not using the cache system should be implemented correctly with a custom cacher. |
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: