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