@page "/auth" @using Microsoft.AspNetCore.Authorization @attribute [Authorize] Auth

You are authenticated

Hello @context.User.Identity?.Name! @if (context.User.Claims is not null) { }