I\'ve defined a temp variable to get current user id, it always returns null.
Here is the snapshot:
Why?
UPDATE:
HttpContext.User = await _signInManager.CreateUserPrincipalAsync(user);
After signing in you can use the sign in manager to create the user principal and manually assign the HttpContext.User reference
This will then allow you to access the user id like you would with a normal signed in page
var userId = userManager.GetUserId(HttpContext.User);