Closed donamj closed 3 years ago
Closing, as I assume this has been resolved, and we highly recommend moving to MSAL.
If you have further questions, please open new issue at the MSAL.js repo: https://github.com/AzureAD/microsoft-authentication-library-for-js/issues
I have a web based dashboard in react that authenticates user with adal-angular. Authorized users can access the page without any issue, but when a user is unauthorized, they get into an infinite loop with login page.
This was my initial code:
After moving 'AuthContext.handleWindowCallback();' inside the first if condition, the user doesn't get in to infinite loop anymore. But the error page is not displayed as expected. They just get a blank page, but the url has the message that user is not authenticated.
How can I get a working error page when the user is not authenticated? Is there a way to access the error message programmatically?