@page "/"
@using Microsoft.AspNetCore.Authorization

@rendermode InteractiveServer

@attribute [Authorize]

<PageTitle>Home</PageTitle>

<MudDialogProvider />
<MudSnackbarProvider />
<h1>Hello</h1>


<AuthorizeView>
    <NotAuthorized>
        Vui lòng đăng nhập
    </NotAuthorized>
    <Authorized>
        Hello @context.User.Identity?.Name!
    </Authorized>
</AuthorizeView>


@code {
   
}