'Can ClaimTypes.NameIdentifier in Identity be null
In asp.net core, can the ClaimTypes.NameIdentifier be null if a user has an Id? (assuming the default settings are used) Also, where does this value come from? I have a project using Identity framework and although in the UserClaims table there are no such records(associating users with a NameIdentifier), the value is not null for the user currently logged in and I haven't written any code to manually assign this value to each user.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
