From dbd9e1a07068066ab428df619d433265fc68a30e Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 4 Nov 2024 02:33:56 +0300 Subject: [PATCH] refactor: change Name to NameIdentifier --- Endpoint/Common/Services/Security/JwtTokenService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "") ]),