.net core - ClaimTypes.NameIdentifier returns email address not Id -
i'm using httpcontext.user.findfirst(claimtypes.nameidentifier).value
in web api project request user, use authentication. nameidentifier returns current user's email whereas google search suggests should returning user's id (guid, in case, if matters).
why happening, , how can return current user's id without database query?
Comments
Post a Comment