Jump to content
McKay Development

Recommended Posts

Posted

Hi.

 

I have stored session into a file, I am trying to restore it using setCookies function but loggedIn function returns false, With heder location https://steamcommunity.com/login/home/?goto=%2Fmy

fs.readFile('/cookies.txt', 'utf8', function (err,data) { if (err) { return console.log(err); } 
  console.log(JSON.parse(data)) // array of cookies from steamcommunity.login function
  steamCommunity.setCookies(JSON.parse(data));
  steamCommunity.loggedIn(function (error, logged_in){
     console.log(logged_in) // === false;
     console.log(error) // === null
  });
});

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