Last active
August 24, 2020 19:12
-
-
Save explorer14/d28e429b0a01cbecaab3ed3afdb38d61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits LayoutComponentBase | |
<AuthorizeView> | |
<Authorized> | |
<div class="sidebar"> | |
<!-- render auth sensitive views if user authenticated --> | |
</div> | |
</Authorized> | |
<NotAuthorized> | |
<div> | |
"Sorry!" | |
</div> | |
</NotAuthorized> | |
</AuthorizeView> | |
@code{ | |
[CascadingParameter] | |
private Task<AuthenticationState> authenticationStateTask { get; set; } | |
//...other code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment