Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Not Logged Into Steam

See original GitHub issue

I keep getting “Error: Not Logged In.” from node-steamcommunity. Here’s my code. After spending a few hours trying different things, I now have a cookie error too… See Image below.

const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');

const config = require('./config.json');

const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeOfferManager({
	steam: client,
	community: community,
	language: 'en'

client.on('webSession', (sessionid, cookies) => {
  community.startConfirmationChecker(10000, config.identitySecret);

const logOnOptions = {
  accountName: config.accountName,
  password: config.password,
  twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)

client.on('loggedOn', () => {
  console.log('Logged into Steam');



// ----------- FUNCTIONS -----------
function updateDescription(description) {
      summary: description
  }, (err) => {
      if (err) {
          console.log("Oops. Something went wrong when changing the description. " + err);
      } else {
          console.log("Description changed to " + description);

// ----------- MAIN -----------


Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

Mr-VITcommented, Jun 5, 2021

call updateDescription after webSession event

Mr-VITcommented, Jun 5, 2021

remove this line

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Steam can't log in - Driver Easy
1: Check your credentials · 2: Check Steam server status · 3: Log in from a web browser · 4: Clear Steam cache...
Read more >
Can't Sign In to Steam? 7 Ways to Fix It - MakeUseOf
1. Check the Status of Steam · 2. Restart Your Computer · 3. Reset Your Password or Other Account Details · 4. Disable...
Read more >
Failed to start upload: Not logged on :: Steam Client Beta
I've found the solution: in client go to the community page and log yourself in, then will be able to upload images. You...
Read more >
How To Fix Can't Sign In To Steam | NEW & Updated in 2022
Fix #1: Restart the Steam client. · Fix #2: Verify the Steam server status. · Fix #3: Power cycle your PC. · Fix...
Read more >
How to Fix If You Can't Log In Steam? - Get Droid Tips
These latter two error messages may be the result of a problem with your Steam account, which prevents you from signing in.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found