Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit 010d6b2

Browse files
authored
Remove entitlement check in microsoftAuth (PrismarineJS#929)
redundant with the existing profile check
1 parent d4bc14a commit 010d6b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client/microsoftAuth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function authenticate (client, options) {
1414
}
1515

1616
const Authflow = new PrismarineAuth(options.username, options.profilesFolder, options, options.onMsaCode)
17-
const { token, entitlements, profile } = await Authflow.getMinecraftJavaToken({ fetchEntitlements: true, fetchProfile: true }).catch(e => {
17+
const { token, entitlements, profile } = await Authflow.getMinecraftJavaToken({ fetchProfile: true }).catch(e => {
1818
if (options.password) console.warn('Sign in failed, try removing the password field\n')
1919
if (e.toString().includes('Not Found')) console.warn(`Please verify that the account ${options.username} owns Minecraft\n`)
2020
throw e
@@ -23,7 +23,6 @@ async function authenticate (client, options) {
2323
debug('[mc] entitlements', entitlements)
2424
debug('[mc] profile', profile)
2525

26-
if (!entitlements.items?.length) throw Error(`Signed in account ${options.username} doesn't appear to own Minecraft`)
2726
if (!profile || profile.error) throw Error(`Failed to obtain profile data for ${options.username}, does the account own minecraft?`)
2827

2928
options.haveCredentials = token !== null

0 commit comments

Comments
 (0)