NemoN / ioBroker.ryd

ioBroker Adapter for Ryd Box Car GPS Logger
MIT License
8 stars 2 forks source link

Reuse auth token #22

Closed 92lleo closed 2 years ago

92lleo commented 2 years ago

Currently, every scheduled start there is a login (and since October a logout) of the ryd user account. This PR adds the ability to reuse the authentication token.

In general it mimics the apps behaviour way more, as the session stays the same with all requests

Currently this PR runs in my installation with a schedule of 3 minutes, none of my phone sessions have been terminated yet. I also tested invalidating the auth token (injecting in https://rydpay.thinxcloud.de/ and logging out), relogin also works.

I'd let it run some more days before eventually merging, just wanted you to have a look at it.

Best, Leo

92lleo commented 2 years ago

First issue found: It breaks if installed over an existing installation. I'll provide an update shortly

NemoN commented 2 years ago

@92lleo Thanks for the commit!