Purpose of User Identity Check
In the provided sample: BlazorWebAssemblyStandaloneWithIdentity/Backend/Program.cs#L107,
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?1 Reply
the app is a sample for showing how identity works so it's doing that