AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
626 stars 373 forks source link

Make sure _loadFrameTimeout clean up _activeRenewals when facing timeout #906

Closed Gang-Peng closed 4 years ago

Gang-Peng commented 4 years ago

Why: We notice a bug with ADAL that sometimes, after browsers being sleep/idle for a while, ADAL gets into a weird state that "adal.token.renew.status" is "canceled", but new acquireToken calls are only registered in callbacks and not triggered.

How: We update the _loadFrameTimeout function to make sure it will clean up the _activeRenewals for a given resource when timeout happens.