when the login button is clicked it redirects to the AD login page and if we hit the browser back button and then click login button again it does nothing and doesn't redirect.
Hi!
We are using react-aad-msal package for Azure AD B2C Authentication. The LoginType is set to Redirect. The issue is, when the login button is clicked it redirects to the AD login page and if we hit the browser back button and then click login button again it does nothing and doesn't redirect.
The steps to reproduce are
- Launch the url (http://localhost:3000/)
- Click on the Login button. It redirects to Login page for B2c authentication
- Click on the browser back button. It lands back at http://localhost:3000
- Click on the Login button. Nothing happens
If we look in the chrome redux dev tools, there is an AAD_LOGIN_ERROR which says "Login_In_Progress: Error during login call - login is already in progress."
Below is the code:
function login() { authProvider.login(); }
Please advice on how to handle this. There is another post in your issues which I believe is similar to this one (Login issue on 2nd attempt if user relaunch the application). Is there a fix for this?
Thanks, Ruchita
Login issue on 2nd attempt if user relaunch the application
Is this still an issue and can you share which version of react-aad-msal and msal you are using? I'm unable to repro this in the sample app, so if it's possible to provide a repository or branch with a minimal repro then I can look into this a bit deeper.
I have a similar issue where I hit:
- /login
- Redirect to authentication
- Authentication successful
- Back to /login
I have the same issue, anyone?:(