Skip to content

Auth failing due to outdated xboxlive-auth lib #136

@Paulomart

Description

@Paulomart
  • The readme doesn't contain a resolution to my issue
  • The example doesn't contain a resolution to my issue

Versions

  • prismarine-auth: 2.7.

Detailed description of a problem

prismarine-auth uses an old version of xboxlive-auth (1) which is now failing as microsoft updated its login flow.

 err: {
      "type": "XboxReplayError",
      "message": "Could not match \"PPFT\" parameter, please fill an issue on https://bit.ly/xr-xbl-auth-create-issue",
      "stack":
          XboxReplayError: Could not match "PPFT" parameter, please fill an issue on https://bit.ly/xr-xbl-auth-create-issue
              at Object.internal (/app/bot/node_modules/@xboxreplay/errors/dist/index.js:33:77)
              at /app/bot/node_modules/@xboxreplay/xboxlive-auth/dist/core/live/index.js:35:32
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async XboxTokenManager.doReplayAuth (/app/bot/node_modules/prismarine-auth/src/TokenManagers/XboxTokenManager.js:122:31)
              at async MicrosoftAuthFlow.getXboxToken (/app/bot/node_modules/prismarine-auth/src/MicrosoftAuthFlow.js:160:20)
              at async retry.xbl.forceRefresh (/app/bot/node_modules/prismarine-auth/src/MicrosoftAuthFlow.js:195:22)
              at async retry (/app/bot/node_modules/prismarine-auth/src/MicrosoftAuthFlow.js:26:14)
              at async MicrosoftAuthFlow.getMinecraftJavaToken (/app/bot/node_modules/prismarine-auth/src/MicrosoftAuthFlow.js:194:7)
              (...)
      "__XboxReplay__": true,
      "details": {
        "statusCode": 500,
        "reason": "INTERNAL_SERVER_ERROR"
      },
      "name": "XboxReplayError"
    }

To fix this I created a fork (2) and updated the regex for parsing the login page: mclist-co/xboxlive-auth-v3-backports@68662d8

In #9 there seems be some discussions on how to proceed with the xboxlive-auth dependency. For now I solved the problem by installing my fork in my package.json of my app.

    "@xboxreplay/xboxlive-auth": "npm:@mclist/xboxlive-auth-v3-backports@3.4.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions