Problem with new Authentication: the Refresh Token is invalid (refresh_token_not_found)

Stex
✭
Hello,
To account for the new Authentication method, I followed the documentation in:
https://support.tado.com/en/articles/8565472-how-do-i-authenticate-to-access-the-rest-api
I'm using Matlab and by updating my code I can successfully get the "my_access_token", which lets me obtain my Tado° data from the API, and the "my_refresh_token", as explained in point 5 of the above mentioned documentation page.
However, when the "my_access_token" expires I cannot refresh it, I always get the following error:
{"error":"invalid_grant","error_description":"The refresh_token is invalid.","error_reason":"refresh_token_not_found"}
Why? Any Ideas?
Thanks! Stefano
0