.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

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -