Microsoft Xbox Account

Microsoft login process is quite complex. I highly recommend you to use this library to add Microsoft login feature in your launcher.

CmlLib.Core.Auth.Microsoft

Example

using CmlLib.Core;
using CmlLib.Core.ProcessBuilder;
using CmlLib.Core.Auth.Microsoft;

var loginHandler = JELoginHandlerBuilder.BuildDefault();
var session = await loginHandler.Authenticate();

var launcher = new MinecraftLauncher();
var process = await launcher.InstallAndBuildProcessAsync("1.20.4", new MLaunchOption
{
    Session = session
});
process.Start();

Last updated