Skip to content

Commit

Permalink
fix: 스프링 빈으로 생성된 JwtTokenProvider 를 코드상에서 직접 new로 생성하여서 @value가 셋팅되지 …
Browse files Browse the repository at this point in the history
…않은 문제 해결 (#35)
  • Loading branch information
mybloom committed Jun 9, 2022
1 parent 0254653 commit fd28992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BE/src/main/java/org/team4/airbnb/auth/OAuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class OAuthService {

private final MemoryProviderRepository memoryProviderRepository;
private final CustomerRepository customerRepository;
private final JwtTokenProvider jwtTokenProvider;

public LoginResponse processLogin(String provider, String authCode) {
OauthProvider oauthProvider = memoryProviderRepository.findByProviderName(provider);
Expand Down Expand Up @@ -52,7 +53,6 @@ public LoginResponse processLogin(String provider, String authCode) {
}

//4. JWT 토큰 생성 후 응답 DTO 전달
JwtTokenProvider jwtTokenProvider = new JwtTokenProvider();
String accessToken = jwtTokenProvider.createAccessToken(userIdViaUserProfile);
String refreshToken = jwtTokenProvider.createRefreshToken();

Expand Down

0 comments on commit fd28992

Please sign in to comment.