fix: JWT 토큰에 adminId 클레임 추가 (#260)

- GenerateAccessToken에서 adminId 클레임을 별도로 추가
- 컨트롤러에서 User.FindFirst("adminId")로 조회 가능하도록 수정

Closes #260
This commit is contained in:
SEAN 2026-02-28 18:34:40 +09:00
parent 9164d9156b
commit 748aa3e3b8

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))