[ENHANCEMENT] Make client<>server token refresh so session doesnt timeout
When I start the bot at my location it is good for about 1 hour, going to PokeStops catching releasing Pokémon but then once that hour or so elapses it just walks round for hours on end (currently 7 hours) doing nothing.
The session token expires after about an hour (sometimes less, sometimes more). After that it needs to re-login to continue. Your only option at the moment is to restart it.
Oh, I assumed that it was still running due to the walking notices. Is that not the case then?
It's still moving around, but it cant perform any tasks as the session is expired (but isnt aware of it)
@MikeDX Its possible to check if the session is expired? Then just needs to refresh the token.
Or just renew it every hour anyway.
@gpires yes, since the PokemonGo-Map repo does exactly this, it gets the session token lifetime at login.
@phupabegim no that is just a dirty hack way of doing it.
This is my biggest issue right now :<
Currently working on a fix for this as it is driving me insane :)
Submitted Pull request #735