fix: JWT 토큰에 adminId 클레임 추가 (#260)
All checks were successful
SPMS_API/pipeline/head This commit looks good
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:
commit
b02910a213
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user