Using Microsoft.AspNetCore.Identity, you might miss a method like GetUserId() which was available for previous .NET frameworks by default.

As a workaround, use this extension method:

Usage:

 

Share This:

  [email protected]