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!