Closed SomeBody16 closed 1 year ago
You need to assign gameProfile
to the LaunchOptions
await launch({
gameProfile: config.data.account.profile,
gamePath: config.modpackDir(modpack.name),
javaPath: 'javaw',
version: `${modpack.mcVersion}-forge-${modpack.forgeVersion}`,
extraExecOption: {
detached: true,
},
accessToken: config.data.account.accessToken,
server: modpack.server,
})
That worked! Thank you!
I'm using minecraft-auth for authorization (MicrosoftAccount)
My code:
console.log result:
And games start without problems Buuuut In game my username is
Steve
and I can't join any premium serverSooo How to start the game with accessToken from AzureApp to be properly authorized?