Describe The Bug:
There is an interval in each accessories to refresh the tokens and they run roughly at the same time when you have multiple accessories.
[2/17/2022, 7:54:57 PM] [HomebridgeSpotifySpeaker] Access token has expired, attempting token refresh
[2/17/2022, 7:54:57 PM] [HomebridgeSpotifySpeaker] Access token has expired, attempting token refresh
[2/17/2022, 7:54:57 PM] [HomebridgeSpotifySpeaker] The access token has been refreshed!
[2/17/2022, 7:54:57 PM] [HomebridgeSpotifySpeaker] The access token has been refreshed!
This is not good because we could have issue since different process are writing to the same file. The interval could live on the platform instead.
To Reproduce:
Expected behavior:
Logs:
Show the Homebridge logs here, remove any sensitive information.
Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.
Describe The Bug: There is an interval in each accessories to refresh the tokens and they run roughly at the same time when you have multiple accessories.
This is not good because we could have issue since different process are writing to the same file. The interval could live on the platform instead.
To Reproduce:
Expected behavior:
Logs:
Plugin Config:
Screenshots:
Environment: