❔ Getting Identity from [Authorize]
Hey there, since i'm using [Authorize] i thought i should be able to get UserID from
var userId = HttpContext.User.FindFirstValue("nameid");
But userId keeps returning null.
For context, this is how i build the claims in my AuthService
2 Replies
which one of those claims is the user ID you want?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.