5k-mirrors / poe-live-search-manager

Desktop tool for Path of Exile for managing live item searches and making instant offers without leaving the game.
171 stars 32 forks source link

Question for own project #83

Closed alvolex closed 4 years ago

alvolex commented 4 years ago

Hey!

Didn't find a better way to reach out to you so I decided to try this way.

I'm trying, as a beginner, to create an application similar to yours in node.js. Things are coming along rather well but I just have no idea how to use POESESSID to not require the user to login to pathofexile.com.

I was hoping you could shed some light on how the POESESSID can be used. So far I've tried to pass it as a cookie in countless ways without success. I think the closes I've come to the right answer is this:

   const cookie = { name: 'POESESSID', value: 'MY_SESSION_ID',domain: '.pathofexile.com' }
  session.defaultSession.cookies.set(cookie)`
  .then(()` => {
   // success
    console.log("Cookie set (?)")
  },` (error) => {
    console.error(error)
  })`

However, it doesn't work. Hope you see this and have time to give a newbi some tips!

Thanks, a lot!

thisismydesign commented 4 years ago

There's contact info in my profile.