Search the Community
Showing results for tags 'events'.
-
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