qlaffont / fortnite-api

Fortnite API, Get Stats, News And Status
https://twitter.com/qlaffont
MIT License
354 stars 86 forks source link

KillSession not working? #99

Closed NilsBacke closed 6 years ago

NilsBacke commented 6 years ago

Hello,

When I try to kill the session, it succeeds but the program is still running on the command line. Here is my code:

fortniteAPI.login().then(()
 => {
  fortniteAPI
    .getFortniteNews("en")
    .then(news => {
      console.log(news.br);
      fortniteAPI.killSession()
        .then(() => {
          console.log("killed");
        }).catch(err => {
          console.log(err);
        });
    })
    .catch(err => {
      console.log(err);
    });
});

I also tried it with the .killSession() method outside of the login(), but still to no success. Thanks in advance!

qlaffont commented 6 years ago

Yep i will do a PR soon.