Op1x3r Posted June 17, 2020 Report Posted June 17, 2020 Hello, I have this code: community.on('sessionExpired', err => client.webLogOn()); ant it causes this error: Error: Cannot log onto steamcommunity.com without first being connected to Steam network 0|app | at SteamUser.webLogOn (/var/www/html/new_bot/node_modules/steam-user/components/web.js:10:9) What am I doing incorrectly? Quote
Dr. McKay Posted June 18, 2020 Report Posted June 18, 2020 You also need to check whether your client is connected. If Steam goes down or your client disconnects for some other reason, your web session will become invalid as well, but webLogOn won't work since you're no longer connected. Quote
Op1x3r Posted June 18, 2020 Author Report Posted June 18, 2020 5 hours ago, Dr. McKay said: You also need to check whether your client is connected. If Steam goes down or your client disconnects for some other reason, your web session will become invalid as well, but webLogOn won't work since you're no longer connected. Does steam-user npm provide this functionality? Quote
Dr. McKay Posted June 18, 2020 Report Posted June 18, 2020 client.steamID is null if you aren't connected. Quote
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.