This commit is contained in:
mmrbnjd
2025-08-22 01:02:14 +03:30
parent b3c8271f18
commit b6343394b0
5 changed files with 25 additions and 13 deletions

View File

@@ -28,9 +28,10 @@ namespace Hushian.Application.Services
var claims = new[]
{
new Claim(JwtRegisteredClaimNames.Sub,
Role=="User" ? "U"+userId.ToString()
:Role=="Company" ? "C"+userId.ToString()
:userId.ToString()),
//Role=="User" ? "U"+userId.ToString()
//:Role=="Company" ? "C"+userId.ToString()
//:
userId.ToString()),
new Claim(ClaimTypes.NameIdentifier, UserName),
new Claim(CustomClaimTypes.Uid,userId.ToString()),
new Claim(ClaimTypes.Role, Role)