Jump to content
McKay Development

CsS

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by CsS

  1. 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
      });
    });
×
×
  • Create New...