python_withings_api icon indicating copy to clipboard operation
python_withings_api copied to clipboard

Token Renewal in 2.4.0

Open psilo909 opened this issue 3 years ago • 2 comments

I just upgrade my smarthome plugin (https://github.com/smarthomeNG/plugins/tree/develop/withings_health) which is using withings-api to newest version. No i can get a new token (invalid before), but the renewal seems to be broken. It is working fine until the timeframe is reached, then i am getting error logs in my log.

did i miss anything or should this be working as before withings changed auth?

psilo909 avatar Feb 14 '22 16:02 psilo909

now added a manual call to self._client.refresh_token() and its updating/refreshing.

however the registred callback function in WithingsApi for updating the token seems not to get triggered without calling that method explicitely

psilo909 avatar Feb 20 '22 14:02 psilo909

I'm seeing the token refreshed, and saved, but Withings is responding with a 401 to that refreshed token. Is something broken on their side?

soaxelbrooke avatar Sep 06 '22 03:09 soaxelbrooke