DoctorMcKay / node-steam-session

Node.js module for authenticating with the Steam auth server. Allows for generating refresh tokens and web auth cookies for use with steam-user and other packages.
https://www.npmjs.com/package/steam-session
MIT License
117 stars 22 forks source link

Can't login with passwords longer than 64 characters #48

Open DrWarpMan opened 1 month ago

DrWarpMan commented 1 month ago

Describe the bug

Can't login with passwords longer than 64 characters.

Simply set your account's password to a password with a length equal to 65 or more characters, and try to login. You will always receive InvalidPassword error.

This bug was found by @Toaaa, they reported this in my own project where I use the node-steam-user library.

Versions

steam-session version: 1.9.0 Node version: 22.9.0

Screenshots and Error Logs

Error: InvalidPassword
    at eresultError (/app/node_modules/steam-session/dist/helpers.js:14:15)
    at AuthenticationClient.sendRequest (/app/node_modules/steam-session/dist/AuthenticationClient.js:243:46)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async AuthenticationClient.startSessionWithCredentials (/app/node_modules/steam-session/dist/AuthenticationClient.js:78:22)
    at async LoginSession.startWithCredentials (/app/node_modules/steam-session/dist/LoginSession.js:363:38)
    at async file:///app/test.js:4:16 {
  eresult: 5
}