diff --git a/backend/src/main/java/com/festago/auth/infrastructure/AdminAuthenticationTokenProvider.java b/backend/src/main/java/com/festago/auth/infrastructure/AdminAuthenticationTokenProvider.java index 00cd23d01..fe572fb13 100644 --- a/backend/src/main/java/com/festago/auth/infrastructure/AdminAuthenticationTokenProvider.java +++ b/backend/src/main/java/com/festago/auth/infrastructure/AdminAuthenticationTokenProvider.java @@ -18,6 +18,7 @@ public class AdminAuthenticationTokenProvider { public TokenResponse provide(AdminAuthentication adminAuthentication) { return tokenProviderTemplate.provide(EXPIRATION_MINUTES, jwtBuilder -> jwtBuilder + .subject(adminAuthentication.getId().toString()) .claim(ADMIN_ID_KEY, adminAuthentication.getId()) .audience().add(Role.ADMIN.name()).and() ); diff --git a/backend/src/main/java/com/festago/auth/infrastructure/MemberAuthenticationTokenProvider.java b/backend/src/main/java/com/festago/auth/infrastructure/MemberAuthenticationTokenProvider.java index 9b3c2907c..830acc15e 100644 --- a/backend/src/main/java/com/festago/auth/infrastructure/MemberAuthenticationTokenProvider.java +++ b/backend/src/main/java/com/festago/auth/infrastructure/MemberAuthenticationTokenProvider.java @@ -18,6 +18,7 @@ public class MemberAuthenticationTokenProvider { public TokenResponse provide(MemberAuthentication memberAuthentication) { return tokenProviderTemplate.provide(EXPIRATION_MINUTES, jwtBuilder -> jwtBuilder + .subject(memberAuthentication.getId().toString()) .claim(MEMBER_ID_KEY, memberAuthentication.getId()) .audience().add(Role.MEMBER.name()).and() );