C#C
C#3y ago
JUK_Karol

❔ asp.net core auth in endpoint

Hey, I want endpoint that will give null guid to getOffers if user is not auth or if is auth give logged user guid. When I use AllowAnonymous User.Identity.IsAuthenticated is allways null, is there other solution than create one endpoint to get offers for logged user and one for unlogged?
image.png
Was this page helpful?