Please include the following information in your post:
Using the sample app provided for Capacitor/Angular, I am able to log in by pressing the login button which then opens a browser window. However, when I am returned to the app, the login button is still there. If I press it again, I see the logout button along with my user details. It appears that the state is not being changed when you first log in.