qlaffont / fortnite-api

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

Fixed refreshToken using incorrect variable #179

Closed Hamza141 closed 5 years ago

Hamza141 commented 5 years ago

I noticed that the api would eventually stop working - getStatsBR would start returning "Player Not Found" after a few hours. I tried using killSession but that would also return "Impossible to kill the API. Please Try Again !". I noticed that refreshToken was using an incorrect variable that would corrupt the api data like access token, refresh token, etc by setting them to undefined due to assignments from an incorrect variable