File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
server-toy-project/src/main/java/com/gdsc_teamb/servertoyproject/jwt Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public JwtTokenProvider(@Value("${jwt.secret}") String secretKey) {
30
30
}
31
31
32
32
// 유저 정보를 가지고 AccessToken, RefreshToken 생성
33
- public TokenInfo generateToken (Authentication authentication ) {
33
+ public JwtToken generateToken (Authentication authentication ) {
34
34
// 권한 가져오기
35
35
String authorities = authentication .getAuthorities ().stream ()
36
36
.map (GrantedAuthority ::getAuthority )
@@ -54,7 +54,7 @@ public TokenInfo generateToken(Authentication authentication) {
54
54
.signWith (key , SignatureAlgorithm .HS256 )
55
55
.compact ();
56
56
57
- return TokenInfo .builder ()
57
+ return JwtToken .builder ()
58
58
.grantType ("Bearer" )
59
59
.accessToken (accessToken )
60
60
.refreshToken (refreshToken )
@@ -98,7 +98,6 @@ public boolean validateToken(String token) {
98
98
log .info ("JWT 토큰이 잘못되었습니다." , e );
99
99
}
100
100
}
101
-
102
101
return false ;
103
102
}
104
103
@@ -109,5 +108,4 @@ private Claims parseClaims(String accessToken) {
109
108
return e .getClaims ();
110
109
}
111
110
}
112
-
113
111
}
You can’t perform that action at this time.
0 commit comments