I have the following scenario: My user has to be in many accessGroups but only one active at a specific moment. So I created a User_Group relation. The active one is the one saved on user. When the user changes the active Group I update the group field on user entity.
After doing this, how can I force refresh the session? For now, I just called the loginService.logout() and the user is forced to login again. Is there a way to avoid this?