Does anyone know what triggers the token changes? I think a few times it happened while I was working on an esri application and was somehow logged out, but other times it happened when I was not online at all - so I'm really not sure if it's related to my activity or not.
Would appreciate any hints!
The tokens will expire automatically. I don't think you can set them to never expire, but I'm not a developer so take what I say with a grain of salt.
For my (public) apps, I run this GP tool occassionally to update a URL field for my image attachments. I've tried to schedule it to run automatically, but that never kicks off for some reason.