Minecraft has been migrating to a new authentication system that is linked to Microsoft/XboxLive. It is a lot more complicated than the old Mojang system and currently, there is no working implementation of it other than the one in the vanilla launcher. All other implementations get errors unless the account owner is over 18 (which is rather restrictive given that the age of a significant proportion of Minecraft players is below 18).
This issue will probably require you to have some API reverse engineering skills. I gave it a go for a day but couldn't quite figure out all the parts required to completely replicate the vanilla authentication flow. However, I did document my progress and I can send you what I've figured out so far on discord or something if you want.
Currently, there is a dodgy prototype of Microsoft authentication in the client, but it has the issues outlined above. It was created using information from wiki.vg (an incredibly helpful resource for everything Minecraft development) and the implementation in Minosoft (another open source Minecraft client project, made with java and kotlin).
Minecraft has been migrating to a new authentication system that is linked to Microsoft/XboxLive. It is a lot more complicated than the old Mojang system and currently, there is no working implementation of it other than the one in the vanilla launcher. All other implementations get errors unless the account owner is over 18 (which is rather restrictive given that the age of a significant proportion of Minecraft players is below 18).
This issue will probably require you to have some API reverse engineering skills. I gave it a go for a day but couldn't quite figure out all the parts required to completely replicate the vanilla authentication flow. However, I did document my progress and I can send you what I've figured out so far on discord or something if you want.
Currently, there is a dodgy prototype of Microsoft authentication in the client, but it has the issues outlined above. It was created using information from wiki.vg (an incredibly helpful resource for everything Minecraft development) and the implementation in Minosoft (another open source Minecraft client project, made with java and kotlin).