CmlLib / CmlLib.Core.Auth.Microsoft

Minecraft Login with Microsoft Xbox account
MIT License
22 stars 4 forks source link

[Feature Request] Specify where to save and load cml_xsession.json. #7

Closed nerrog closed 2 years ago

nerrog commented 2 years ago

Is it possible to change the destination of cml_xsession.json with an argument so that it supports multiple accounts?

AlphaBs commented 2 years ago

CmlLib.Core.Auth.Microsoft.UI.WinForm

var form = new MicrosoftLoginForm(
    new LoginHandler(
        cacheManager: new JsonFileCacheManager<SessionCache>("file.json")));

CmlLib.Core.Auth.Microsoft.MsalClient

// Initialize MsalMinecraftLoginHelper
var handler = new MsalMinecraftLoginHandler(app, "file.json");
nerrog commented 2 years ago

Thank you!