LoginView Component
The LoginView component displays different content depending on whether
the user is authenticated. Use AnonymousTemplate and LoggedInTemplate
to define the content for each state.
LoginView with Templates
You are not logged in. Please sign in to access member content.
Code:
<LoginView>
<AnonymousTemplate>
<p>You are not logged in.</p>
</AnonymousTemplate>
<LoggedInTemplate>
<p>Welcome back!</p>
</LoggedInTemplate>
</LoginView>