A cloud-based identity and access management service for securing user authentication and resource access
Hello @Pa Le,
When using Microsoft Entra SSO with multiple applications, such as App A and App B registered to different tenants, the behavior you are experiencing is due to how session cookies are managed in the browser. When you log in to App A, a session cookie is set for tenant A. If you then attempt to log in to App B, the session cookie for tenant A may still be valid, allowing you to bypass the ‘Pick an account’ prompt if the session is recognized as valid for tenant B.
When you log into multiple applications using Microsoft Entra SSO in the same browser, the session cookies set by the first application can allow for automatic sign-in to the second application without prompting for account selection. This happens because MSAL.js relies on session cookies to provide single sign-on (SSO) capabilities between different applications. If the user has multiple accounts, they should typically be prompted to pick an account, but this may not happen if the session cookie from the first application is still valid for the second application. To manage this, you can use the ssoSilent method with a login_hint or sid to specify which account to use, thus ensuring that the correct session is recognized and prompting the user to select an account if necessary
SSO between browser tabs for the same app
If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.