Jump to content
McKay Development

Recommended Posts

Posted

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?

 

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...