OutOfBears / DBD-API

Dead By Daylight API
MIT License
56 stars 9 forks source link

Session token expirey #1

Closed OutOfBears closed 5 years ago

OutOfBears commented 5 years ago

After ~24 hours the DBD session token will expire, and then you cannot use the API, though i tried to counter this by adding a check for the return and re-generating it seems to still not work. (which is why the backend just restarts the dotnet app every 10 hours or so)

jesterret commented 5 years ago

So, with that, just send empty post request to api/v1/me/logout. You can see it makes a difference, when You try to login twice in a row without logging out, even with different steam tokens, the second request will have the same TokenId and won't have full body.

OutOfBears commented 5 years ago

I believe that I've solved this in the latest push. Ez.