Jump to content
McKay Development

sherazi

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by sherazi

  1. i used steam community package to login and after login using the community.login function and i passed the cookies to steam trade offer manager to resume that session but it says session is not logged in but i pass the cookies after login to steam community.here is the code:

     community.login(logOnOptions, async(err, sessionID, cookies ) => {
                if (err) {
                    return next({ code: err.status, message: err.message });
                }
                console.log('Logged into Steam successfully!');
                    console.log('Web session established!');
                    botCookies=cookies;
                    console.log('Session ID:', sessionID);
                    console.log('cookies :', cookies);
                   
                    manager.setCookies(cookies, function(err) {
                        if (err) {
                            console.log(err.message, "session error");
                            // res.send("session error"); // Fatal error since we couldn't get our API key
                            return;
                        }
     

    i got this error from yesterday.it was working fine before

  2. i use steam-session to login to steam using this:

    let session = new LoginSession(EAuthTokenPlatformType.WebBrowser);  
    it give me the cookie after logged in using this method
    sessionCookie = await session.getWebCookies();
    when i use this cookie to stay loggedin to original steamcommunity.com site using proxy request to steam community original site using 
    http-proxy-middleware and  it loggedinto the site but only for some pages and when i go to the userprofile and inventory pages its logged me out.
    is the cookie which i am geeting from steam-session is usable to original steamcoomunity site?
    if not then what is the method to use cookie to stay loggedinto to original steamcommunity site using the cookie header
×
×
  • Create New...