Purpose of User Identity Check
In the provided sample: BlazorWebAssemblyStandaloneWithIdentity/Backend/Program.cs#L107,
the code checks
What is the purpose of this check? Can it be removed?
the code checks
user.Identity is not null && user.Identity.IsAuthenticated and also applies .RequireAuthorization().What is the purpose of this check? Can it be removed?