Error: Not Logged Into Steam
See original GitHub issueI 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');
// CONFIG FILE
const config = require('./config.json');
const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeOfferManager({
steam: client,
community: community,
language: 'en'
});
/* LOGIN & CREDENTIALS */
client.on('webSession', (sessionid, cookies) => {
manager.setCookies(cookies);
community._setCookie(cookies);
community.setCookies(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');
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
console.log(client.steamID);
updateDescription("yo");
});
// ----------- FUNCTIONS -----------
function updateDescription(description) {
community.editProfile({
summary: description
}, (err) => {
if (err) {
console.log("Oops. Something went wrong when changing the description. " + err);
} else {
console.log("Description changed to " + description);
}
});
}
// ----------- MAIN -----------
client.logOn(logOnOptions);
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
call
updateDescription
afterwebSession
eventremove this line