Jump to content
McKay Development

Session expire error.


Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...