Samsung Smartthings token 30 day expiration

Hello,

I have two devices (washing machine, dryer) connected to HA using official integration. The token I create has 30 days expiration period and there is nothing to change on the Samsung page the integration docs link to. Every 30 days the integration fails and the logs says:

File “/usr/local/lib/python3.12/site-packages/pysmartthings/api.py”, line 424, in generate_tokens
raise APIInvalidGrant(data.get(“error_description”))
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: XYZ requested by clientId: XYZ with grantType: refresh_token, e.cause: no cause

It is a bit weird that I cannot find a solution on something that looks like a common cause everybody using the integration probably solved. Thanks for ideas in advance!

I have the same problem with a little difference, now it spire after 24 hours… We need to be hable to manage the expiration time.

The SmartThings token situation is a hot button item. Currently tokens expire on every HA restart or 24hours.

Is posible to use the button before the expiration of the token?