react-aad icon indicating copy to clipboard operation
react-aad copied to clipboard

Authentication State stuck in "InProgress" state

Open pricetula opened this issue 4 years ago • 1 comments

Library versions

  • react-aad-msal: 2.3.4
  • msal: 1.2.1

Describe the bug AzureAd React provider Authentication State is stuck in "InProgress" state if the dialog prompt requesting password is left open for more than a minute and then closed. ms1

Expected behavior If the password dialog is closed and a user has not completed the login step then should clear localstorage or reset state to its initial state to allow login process to begin

To Reproduce Steps to reproduce the behavior:

  1. Make attempt to login and expect to see the a login dialog like :- ms1
  2. Wait for more than a minute then close the dialog
  3. The AzureAd component remains in authenticationState: "InProgress" state, even after refreshing the page

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 81.0.4044.92

pricetula avatar Apr 15 '20 10:04 pricetula

Hmmm, this sounds like an issue that would be better raised on the MSAL side, as they control the items that are stored and cleared from Localstorage. We could probably patch this behavior, but I would be more comfortable fixing the root issue.

AndrewCraswell avatar Apr 18 '20 23:04 AndrewCraswell