-
User manager get methods accept a different object depending on whether it is async or sync. E.g. GetUserId wants a ClaimsPrincipal Is there a good reason for this or should these be brought into harmony to use ClaimsPrincipal perhaps? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
They also are used for very different things as well, one is used to extract the user id from an existing principal, i.e. HttpContext.User, while GetUserId is returning the user id from the user poco. |
Beta Was this translation helpful? Give feedback.
They also are used for very different things as well, one is used to extract the user id from an existing principal, i.e. HttpContext.User, while GetUserId is returning the user id from the user poco.