Skip to content

Commit 8c3b7df

Browse files
authored
Merge pull request #70 from Decodeat/Refactor/#64
Fix: ROLE_ 접두사가 중복 삭제
2 parents 6854af6 + 882119a commit 8c3b7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Authentication getAuthentication(String token) {
8686

8787
// 2. Create the authority with the required "ROLE_" prefix.
8888
Set<SimpleGrantedAuthority> authorities = Collections.singleton(
89-
new SimpleGrantedAuthority("ROLE_" + userRole)
89+
new SimpleGrantedAuthority(userRole)
9090
);
9191
Long userId = claims.get("id", Long.class);
9292

0 commit comments

Comments
 (0)