C
C#6d ago
Eple

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
this_is_pain
this_is_pain6d ago
the app is a sample for showing how identity works so it's doing that

Did you find this page helpful?