diff --git a/Endpoint/Common/Services/Security/JwtTokenService.cs b/Endpoint/Common/Services/Security/JwtTokenService.cs index f5f7429..41a169f 100644 --- a/Endpoint/Common/Services/Security/JwtTokenService.cs +++ b/Endpoint/Common/Services/Security/JwtTokenService.cs @@ -33,7 +33,7 @@ public class JwtTokenService : IAccessToken SigningCredentials = signingCredentials, Subject = new ClaimsIdentity( [ - new Claim(ClaimTypes.Name, userId), + new Claim(ClaimTypes.NameIdentifier, userId), // todo: get role by userId new Claim(ClaimTypes.Role, "") ]),