Token auto refresh logic in custom app.

Community Alums
Not applicable

We have a custom application that integrate with the client's env to get the API data and these data are showing in the form of various UI macros. Now we want to build a logic that will check that if token is already present then the normal flow will follow and if token is not present then first it will call your script include to get the token and then it will set that token and all the process will goes on and during making any function call it will also check the token expiry if that particular token is expired then it will call the function to regenerate the token again. 

Note : Token is coming from API request with JSON response that have token, expire_in,token_type value.

Please help me in this logic implementation.

 

0 REPLIES 0