Hi @Gulati, Sneha S , this issue might be related to the way MSAL handles the logout process. When you log out, MSAL clears the cache and redirects the user to the Azure AD sign-out page. After sign-out, Azure AD redirects back to the page that invoked logout by default. However, if the user has multiple tabs open, the logout process might not work as expected. To resolve this issue, you can try the following steps:
- Use the
logoutPopup
method instead of thelogoutRedirect
method. ThelogoutPopup
method opens a popup window for the logout process, which allows the user to log out from all tabs. - You can also try setting the
account
parameter tonull
when calling thelogoutRedirect
method. This will log out the user from all accounts and clear the cache. - Another option is to use the
endSessionRequest
method to end the user's session. This method sends a request to the Azure AD endpoint to end the user's session and clears the cache.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you, James