Skip to content

Commit

Permalink
fix: delete consturctor injection
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlee1703 committed Sep 25, 2023
1 parent bc0ad87 commit 8444a84
Showing 1 changed file with 5 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,20 @@
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;

import lombok.RequiredArgsConstructor;

@Service
@PropertySource("classpath:application.yml")
@RequiredArgsConstructor
public class GoogleService {
private final MemberService memberService;
private final MemberRepository memberRepository;
private final RefreshTokenService refreshTokenService;
private final JwtProvider jwtProvider;
private final String clientId;
private final String redirectUri;
private final String clientSecret;

private final String tokenUri;

private final String userInfoUri;
private final String authorizationUri;

public GoogleService(MemberService memberService, MemberRepository memberRepository, RefreshTokenService refreshTokenService, JwtProvider jwtProvider,
@Value("${google.client_id}") String clientId, @Value("${google.client_secret}") String clientSecret,
@Value("${google.redirect_uri}") String redirectUri,
@Value("${google.token_uri}") String tokenUri, @Value("${google.user_info_uri}") String userInfoUri,
@Value("${google.authorization_uri}") String authorizationUri) {
this.memberService = memberService;
this.memberRepository = memberRepository;
this.refreshTokenService = refreshTokenService;
this.jwtProvider = jwtProvider;
this.clientId = clientId;
this.redirectUri = redirectUri;
this.clientSecret = clientSecret;
this.tokenUri = tokenUri;
this.userInfoUri = userInfoUri;
this.authorizationUri = authorizationUri;
}
@Value("${google.user_info_uri}")
private String userInfoUri;

public GoogleDto getUserInfo(TokenDto tokenDto) {

GoogleDto googleDto = null;

try {
Expand Down

0 comments on commit 8444a84

Please sign in to comment.