diff --git a/src/client/microsoftAuth.js b/src/client/microsoftAuth.js index d92a225..7f88cf1 100644 --- a/src/client/microsoftAuth.js +++ b/src/client/microsoftAuth.js @@ -14,7 +14,7 @@ async function authenticate (client, options) { } const Authflow = new PrismarineAuth(options.username, options.profilesFolder, options, options.onMsaCode) - const { token, entitlements, profile } = await Authflow.getMinecraftJavaToken({ fetchEntitlements: true, fetchProfile: true }).catch(e => { + const { token, entitlements, profile } = await Authflow.getMinecraftJavaToken({ fetchProfile: true }).catch(e => { if (options.password) console.warn('Sign in failed, try removing the password field\n') if (e.toString().includes('Not Found')) console.warn(`Please verify that the account ${options.username} owns Minecraft\n`) throw e @@ -23,7 +23,6 @@ async function authenticate (client, options) { debug('[mc] entitlements', entitlements) debug('[mc] profile', profile) - if (!entitlements.items?.length) throw Error(`Signed in account ${options.username} doesn't appear to own Minecraft`) if (!profile || profile.error) throw Error(`Failed to obtain profile data for ${options.username}, does the account own minecraft?`) options.haveCredentials = token !== null