We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6854af6 + 882119a commit 8c3b7dfCopy full SHA for 8c3b7df
src/main/java/com/DecodEat/global/config/jwt/JwtTokenProvider.java
@@ -86,7 +86,7 @@ public Authentication getAuthentication(String token) {
86
87
// 2. Create the authority with the required "ROLE_" prefix.
88
Set<SimpleGrantedAuthority> authorities = Collections.singleton(
89
- new SimpleGrantedAuthority("ROLE_" + userRole)
+ new SimpleGrantedAuthority(userRole)
90
);
91
Long userId = claims.get("id", Long.class);
92
0 commit comments