From 882119adbb0ed2cad01f100c64751e79114378e5 Mon Sep 17 00:00:00 2001 From: Yujin1219 Date: Mon, 22 Sep 2025 15:17:15 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20ROLE=5F=20=EC=A0=91=EB=91=90=EC=82=AC?= =?UTF-8?q?=EA=B0=80=20=EC=A4=91=EB=B3=B5=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/DecodEat/global/config/jwt/JwtTokenProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java b/src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java index 1dcfe1b..48d209f 100644 --- a/src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java +++ b/src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java @@ -86,7 +86,7 @@ public Authentication getAuthentication(String token) { // 2. Create the authority with the required "ROLE_" prefix. Set authorities = Collections.singleton( - new SimpleGrantedAuthority("ROLE_" + userRole) + new SimpleGrantedAuthority(userRole) ); Long userId = claims.get("id", Long.class);