refactor: change Name to NameIdentifier
This commit is contained in:
parent
0dda336de1
commit
dbd9e1a070
@ -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, "")
|
||||||
]),
|
]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user