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.
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.