JanLoebel / eufy-node-client

Experiment to talk to eufy security
43 stars 6 forks source link

Fix isTokenOutdated check #24

Closed matijse closed 3 years ago

matijse commented 3 years ago

Hi,

Thanks for this repo! I am using it to build a bridge between Eufy and Home Assistant, passing all motion events and doorbell presses to Home Assistant. This library is great for this use case!

I noticed that every request triggered a login. It seemed that the isTokenOutdated check was checking the wrong case. So here is a small fix :)