react-aad
react-aad copied to clipboard
Authentication State stuck in "InProgress" state
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.
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:
- Make attempt to login and expect to see the a login dialog like :-
- Wait for more than a minute then close the dialog
- 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
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.