fix: JWT 토큰에 adminId 클레임 추가 (#260)
All checks were successful
SPMS_API/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_API/pulls/261
This commit is contained in:
김선규 2026-02-28 09:37:17 +00:00
commit b02910a213

View File

@ -27,7 +27,8 @@ public class JwtService : IJwtService
{
new(JwtRegisteredClaimNames.Sub, adminId.ToString()),
new(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString("N")),
new(ClaimTypes.Role, role)
new(ClaimTypes.Role, role),
new("adminId", adminId.ToString())
};
if (!string.IsNullOrEmpty(serviceCode))