This commit is contained in:
mmrbnjd
2025-08-07 22:41:22 +03:30
parent d153c4bde0
commit 0736632a59
5 changed files with 67 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ namespace Hushian.Application.Services
{
var claims = new[]
{
new Claim(JwtRegisteredClaimNames.Sub,UserName),
new Claim(JwtRegisteredClaimNames.Sub,userId.ToString()),
new Claim(ClaimTypes.NameIdentifier, UserName),
new Claim(CustomClaimTypes.Uid,userId.ToString()),
new Claim(ClaimTypes.Role, Role)