Tuya authenication issues

For some reason I need to re-login into smartlife integration every time I restart the container. I think the certificate received during login is not being persisted and subsequently lost. How is it supposed to work ? Where should I see the certificate ? I did some research and checked in config/.storage but found nothing that would indicate tuya/smartlife related stuff.

Also this used to work, and probably broke due to some HS container upgrade.

Can someone help me with this ?