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.Auth.Microsoft;

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

var launcher = new CMLauncher();
var process = await launcher.CreateProcessAsync("1.16.5", new MLaunchOption()
{
    Session = session
});
process.Start();

Last updated