I'm using CreateLayer in my Add-In and passing an auth token to create a layer from a REST Map Server.
The issue I'm having is that after the token times out, the layers will no longer work and they have to create the layers again through a ribbon button I provided.
Is there a way to force the token to be generated after a timeout? Maybe I can receive an event in the add-in??? I just have no idea what to search for to make this happen.
Thanks in advance!