MSAL - Closing logout Popup does not ends user session. But still redirects me to mainWindowRedirectUri
When the user clicks sign out and the pop up appears, if we close the popup without actually signing out the user gets redirected to mainWindowRedirectUri.
I also tried a different approach, if I use logoutRedirect instead I still face an issue. The user gets redirected to the page where the user has to select which account to logout of but if the user decides to go back from there, the next he tries to sign out again I get and interaction in progress error. According to my understanding the PublicClientApplication instance which opened during the first attempt of sign out remains open and doesn't let a new instance to be created. I am using msal-browser javascript.