.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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -