This commit is contained in:
mmrbnjd
2025-08-22 01:20:42 +03:30
parent b6343394b0
commit 8d5d083883
3 changed files with 6 additions and 5 deletions

View File

@@ -29,8 +29,8 @@ namespace Hushian.Application.Services
{
new Claim(JwtRegisteredClaimNames.Sub,
//Role=="User" ? "U"+userId.ToString()
//:Role=="Company" ? "C"+userId.ToString()
//:
Role=="Company" ? "C"+userId.ToString()
:
userId.ToString()),
new Claim(ClaimTypes.NameIdentifier, UserName),
new Claim(CustomClaimTypes.Uid,userId.ToString()),