rikray_ Posted January 3 Report Share Posted January 3 const main = async () => { const client = new SteamUser() client.on('error', (error) => { console.log('error: ', error.message) }) const account = { accountName: 'somelogin', passwod: 'wrongpass', shared_secret: 'shared=' } const code = await getAuthCode(account.shared_secret) client.logOn({ accountName: account.accountName, password: account.passwod, twoFactorCode: code, }) } main() //logs error: InvalidPassword error: InvalidPassword error: InvalidPassword error: InvalidPassword error: InvalidPassword error: InvalidPassword Process finished with exit code 0 The problem only occurs with this error. Also, the number of listener calls is different every time Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 4 Report Share Posted January 4 I'm not able to reproduce this using your code. Error reading file machineAuthToken.somelogin.txt: ENOENT: no such file or directory, open 'C:\Users\-\AppData\Local\doctormckay\node-steamuser\machineAuthToken.somelogin.txt' API GET request to https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/?format=vdf&cellid=12: 200 Randomly chose websockets server ext2-atl3.steamserver.net:27023 (load = 31, wtd_load = 22.909419059753418) [W1] Connecting to WebSocket CM ext2-atl3.steamserver.net:27023 [W1] WebSocket connection success; now logging in Logging on with account name and password; fetching a new refresh token Sending message: ClientHello Sending message: Authentication.GetPasswordRSAPublicKey#1 [W1#1] Handled message: Authentication.GetPasswordRSAPublicKey#1_Response Sending message: Authentication.BeginAuthSessionViaCredentials#1 [W1] WebSocket disconnected with code 1000 and reason: [W1] Connection closed, but message queue is active. Enqueueing __CLOSE__ [W1#2] Handled message: Authentication.BeginAuthSessionViaCredentials#1_Response [W1] Handling connection close steam-session startWithCredentials exception Error: InvalidPassword at eresultError (D:\Libraries\Repos\Node Modules\Steam Handlers\steam-user\node_modules\steam-session\dist\helpers.js:14:15) at AuthenticationClient.sendRequest (D:\Libraries\Repos\Node Modules\Steam Handlers\steam-user\node_modules\steam-session\dist\AuthenticationClient.js:242:46) at async AuthenticationClient.startSessionWithCredentials (D:\Libraries\Repos\Node Modules\Steam Handlers\steam-user\node_modules\steam-session\dist\AuthenticationClient.js:77:22) at async LoginSession.startWithCredentials (D:\Libraries\Repos\Node Modules\Steam Handlers\steam-user\node_modules\steam-session\dist\LoginSession.js:361:38) at async D:\Libraries\Repos\Node Modules\Steam Handlers\steam-user\components\09-logon.js:439:26 { eresult: 5 } Handle logon response (InvalidPassword) Disconnecting without sending logoff [W1] We wanted to end connection, but it's not connected or connecting error: InvalidPassword Quote Link to comment Share on other sites More sharing options...
rikray_ Posted January 4 Author Report Share Posted January 4 Sorry, I forgot to insert the code for the getAuthCode function. Maybe that's why you couldn't reproduce? const getAuthCode = async (shared_secret) => { return await new Promise((resolve, reject) => { SteamTotp.getAuthCode(shared_secret, (err, code) => { if (err) { reject(err) } else { resolve(code) } }) }) } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.