klanchman / homebridge-logi-circle-controls

Homebridge plugin for extended Logitech Circle camera controls
MIT License
21 stars 1 forks source link

Cache auth token on disk #10

Closed klanchman closed 5 years ago

klanchman commented 5 years ago

Currently every time you start the Homebridge server, the plugin gets a new auth token. The last time I checked, auth tokens were good for 1 week, so it might be a good idea to cache the latest auth token on the disk. That way if the Homebridge server is restarted, the plugin can use the old auth token since it's probably still valid. This will be especially good for development, since I start and stop the server multiple times in the span of minutes.

klanchman commented 5 years ago

The more I've looked around, I don't really see any(?) other plugins doing something similar, so I'll just close this for now