Performing Logout

Upon successfully login, I check to ensure user meets certain important credential. If it fail, I want to perform a logout and bring user back to the login page. Document mentioned authLogout but no detail. How do I initial this logout ? TQ

If it fails, I would set all the key values that they entered to null and do a redirect using “path” action to the login in page.

I have tired that . But the problem is the side menu navigation is showing, even though it is at the login page. User can still interact with the menu. Unless it is a complete logout, otherwise the side menu does not goes away.

Check out the example page Example - Controlling navigation and header areas

Thank you so much . This is exactly what I needed