Closed ibagaric closed 1 year ago
Hey @ibagaric,
I think it could be related to the order of the execution of your application, not sure how it works since I don't have more details.
Once the user is logged in keycloak.isLoggedIn()
will return true.
Please if you are facing the issue, could you provide an example so I could better understand?
Closing this issue since seems it is not a general problem. If you or someone faces an issue with this function please open a new ticket with an example so we can better evaluate. Thanks!
I want to check if user logged in before the app is bootstrapped, so I add keycloak.isLoggedIn() in
APP_INITIALIZER
, but it always returns false.Bug Report or Feature Request (mark with an
x
)Versions.
Desired functionality.
I need to clear local storage before login if a user is not authenticated. Or maybe some other idea how to clean the local storage, if the user has logged out on another environment