I just found out, the front end of the application stores the user in a local storage in the browser, and identifies the login through it, the back end doesn't have two sessions.
This is the solution in my case: https://stackoverflow.com/questions/21946922/how-to-use-multiple-different-localstorage-in-a-single-domain.