I am developing a cloud to cloud connector for a major hardware vendor. So far things are going ok, I’m able to use the configuration lifecycle to get an oauth token from the hardware vendor cloud, that expires in one day.
My question is around renewing the Oauth tokens. Are we responsible for doing this in some sort of cron like scenario? My code lives in lambda so that could be hard. Is there a ping event that will come in per app install and could be used to check the token state?
I really don’t want this app to end up being super annoying like most of the ecobee apps that can never maintain a valid token. Is there any documented strategy that ST recommends?