File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
server-toy-project/src/main/java/com/gdsc_teamb/servertoyproject/login Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .gdsc_teamb .servertoyproject .login ;
2
2
3
- import com .gdsc_teamb .servertoyproject .jwt .TokenInfo ;
3
+ import com .gdsc_teamb .servertoyproject .jwt .JwtToken ;
4
4
import com .gdsc_teamb .servertoyproject .jwt .JwtTokenProvider ;
5
5
import lombok .RequiredArgsConstructor ;
6
6
import org .springframework .security .authentication .UsernamePasswordAuthenticationToken ;
@@ -19,7 +19,7 @@ public class MemberService {
19
19
private final JwtTokenProvider jwtTokenProvider ;
20
20
21
21
@ Transactional
22
- public TokenInfo login (String memberId , String password ) {
22
+ public JwtToken login (String memberId , String password ) {
23
23
// 1. Login ID/PW 를 기반으로 Authentication 객체 생성
24
24
// 이때 authentication 는 인증 여부를 확인하는 authenticated 값이 false
25
25
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken (memberId , password );
@@ -29,8 +29,8 @@ public TokenInfo login(String memberId, String password) {
29
29
Authentication authentication = authenticationManagerBuilder .getObject ().authenticate (authenticationToken );
30
30
31
31
// 3. 인증 정보를 기반으로 JWT 토큰 생성
32
- TokenInfo tokenInfo = jwtTokenProvider .generateToken (authentication );
32
+ JwtToken jwtToken = jwtTokenProvider .generateToken (authentication );
33
33
34
- return tokenInfo ;
34
+ return jwtToken ;
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments