Error: Not Logged In
at SteamCommunity.<anonymous> (/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:486:25)
at Request._callback (/node_modules/steamcommunity/components/http.js:67:15) I'm passing a steam community object into my trade offer manager like so
var myCommunity = new SteamCommunity();
var client = new SteamUser();
var offerMananger = new TradeOfferManager({
steam: client,
language: "en",
cancelTime: 300000,
community: myCommunity
});Sometimes, for whatever reason, as have been stated before, my community session will timeout, expire or just logout when I attempt a trade. I get the Not logged in error.
Is there a simple way to check if myCommunity is logged out once it's attached to an offerManager? Or can I just check the loggedIn method on the myCommunity object? Do I need to reset cookies when I do this? Do I need to recreate my offerManager to set cookies? What's the recommended way?