Hello All,
I am building a custom widget for use with the Web AppBuilder and it will be using the REST API. I am struggling with how to manage the token once it is acquired. My logic thus far is that the widget will get a token when it is initialized. Where I am stuck is: a) how to check for an expiration, b) when to check for an expiration. I thought about getting a new token with every request, but that doesn't seem right. What is the strategy for token management?
Thank you.