"@auth0/auth0-angular" isAuthenticated$ returns as true after successfully logout

Hi @wnimlaor

Welcome Back to the Auth0 Community!

I am sorry about the delayed response to your post.

If you still need assistance with the issue that you are having, I believe the issue is caused by the fact that you might no be redirecting the user properly to the /logout endpoint, meaning that their session with Auth0 is not yet terminated and isAuthenticated() is return true since the session is still valid.

The user might be authenticated silently due to the valid session and that is why the profile component or the logout button is still visible on the page even if the logout() function was caller accordingly.

You can read more about session management on this Knowledge Article.

However, in order to troubleshoot the issue further I would require a snippet of the code where you use isAuthenticated. If you still need assistance on this matter, feel free to drop a reply with the snippet or post any other questions you might have.

Kind Regards,
Nik