How to get current login username and also their email address? Identity provider for the account is username not email.
Username is not returned as claims in any of policy such as sign-in, sign-up etc.
Custom attribute like "SpouseName" can be returned as claim for sign in where I can access by ((ClaimsIdentity)User.Identity).FindFirst("extension_SpouseName").Value
It's an MVC application.
You need to select the user attributes - email address in your signup or signin profile which you are using to validate the access token.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With