I am using ESRI online map in my project. To find a route and calculate the estimated time of arrival (ETA) of a place I am using ESRI RouteTask. I have implemented AuthenticationChallengeHandler in a service. The callback method handleChallenge of AuthenticationChallengeHandler gets triggered whenever an access token expires. Here we need to write logic to retrieve a new access token. But the problem is handleChallenge callback method sometimes gets triggered multiple times. This does not happen all the time. I could not find the exact scenario when it gets triggered multiple times. Is there any way to prevent multiple executions of the callback?
RouteTask
AuthenticationChallengeHandler
handleChallenge
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.