C#C
C#10mo 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?
Was this page helpful?