keycloak-angular
keycloak-angular copied to clipboard
New window not responding to await keycloakservice.isLoggedIn
- [ ] bug report -> please search for issues before submitting
- [x ] feature request
So I've read all the documentation regarding this lib + extensively checked the example you've given. In said example you use isLogged= await this.keycloakService.isLoggedIn I'm using this together with an ngIf to display a Login or Logout button, and this works perfectly fine. But when logging in, closing the tab, and reopening the tab on localhost:4200, the login button reappears, and when clicked, doesn't redirect to the keycloak login page, but rather seems to automatically log the user in. Is this because the access-token is still valid or is there another reason? And is there a way to rectify this behavior? (when using your example, the same behavior should occur)
so my question is, is this flow possible, and if so, how : open homepage -> login -> fill in login data -> return to homepage -> only logout button is there -> close tab -> reopen tab -> only logout button is present due to recent login