MSAL logout logs out all Angular apps under the same domain

Discussão em 'Angular' iniciado por Виктор Поляков, Setembro 11, 2025.

  1. I have multiple Angular applications hosted under the same domain but in different paths:

    https://my-domen/one

    https://my-domen/two

    https://my-domen/three

    Each application is configured with MSAL for authentication, and tokens are stored in localStorage.

    Problem: When I call logout from one application, it automatically logs the user out from all the other applications as well.

    What I tried:

    Passing the current account to the logout method — but this did not solve the issue.

    Question: How can I implement logout so that only the current application is signed out, without affecting the others?

    Any help or recommendations would be greatly appreciated.

    Thanks!

    Continue reading...

Compartilhe esta Página