@inject NavigationManager NavigationManager

Authorizing page

@if (context.User.Identity?.IsAuthenticated != true) { NavigationManager.NavigateTo("/login"); } else {

You are not authorized to access this resource.

}
Not found

Sorry, there's nothing at this address.

@* *@
@code { private ErrorBoundary? ErrorBoundary { get; set; } // private ExceptionModal ExceptionModal { get; set; } }