0x737368 Posted June 5, 2017 Report Posted June 5, 2017 Currently I'm using steam-user as it allows to add node-tf2 module, but there are some methods that steamcommunity has that I'd like to integrate into my script. So currently I login with steam-user, and then try to pass the cookies to steamcommunity: client.on("webSession", function(sessionID, cookies) { community.setCookies(cookies); manager.setCookies(cookies, function(err) { if (err) { console.log("There was a WebSession error: " + err); process.exit(1); return; } else { console.log("Successfully got an API key: " + manager.apiK$ } }); community.setCookies(cookies); community.startConfirmationChecker(30000, identitySecret); //Checks and ac$ });But when I try to do operations with steamcommunity it gives me a HTTP 401 response, which means it hasn't authenticated. How do I solve this? Quote
Dr. McKay Posted June 5, 2017 Report Posted June 5, 2017 That's the correct way to do it. Make sure you aren't trying to do any authenticated stuff before the webSession event gets emitted. 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.