refactor: change Name to NameIdentifier

This commit is contained in:
Polianin Nikita 2024-11-04 02:33:56 +03:00
parent 0dda336de1
commit dbd9e1a070

View File

@ -33,7 +33,7 @@ public class JwtTokenService : IAccessToken
SigningCredentials = signingCredentials, SigningCredentials = signingCredentials,
Subject = new ClaimsIdentity( Subject = new ClaimsIdentity(
[ [
new Claim(ClaimTypes.Name, userId), new Claim(ClaimTypes.NameIdentifier, userId),
// todo: get role by userId // todo: get role by userId
new Claim(ClaimTypes.Role, "") new Claim(ClaimTypes.Role, "")
]), ]),