Unauthenticated/Authenticated CSS

You can use CSS to hide HTML elements depending on the state of the user, whether they are unathenticated or authenticated

.hideUnAuthenticated - this will hide the HTML element if the user is unathenticated

.hideAuthenticated - this will hide the HTML element if the user is authenticated

<div>
    <h2 class="hideUnAuthenticated"> Hide if not authenticated</h2>
</div>

Last updated