diff --git a/src/Money.Api/Users/Controllers/UserController.cs b/src/Money.Api/Users/Controllers/UserController.cs index 469c57dd..9eb5ca39 100644 --- a/src/Money.Api/Users/Controllers/UserController.cs +++ b/src/Money.Api/Users/Controllers/UserController.cs @@ -41,7 +41,8 @@ public async Task Login([FromBody] LoginRequest model) { var claims = new[] { - new Claim(ClaimTypes.Name, model.UserName) + new Claim(ClaimTypes.Name, user.UserName), + new Claim(ClaimTypes.NameIdentifier, user.Id) }; var credentials = new SigningCredentials(configuration.GetSecurityKey(), SecurityAlgorithms.HmacSha256);