Skip to content

Commit

Permalink
refactor: 로그 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyeonyy committed Oct 22, 2024
1 parent 029940b commit e2a4ae0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.springframework.stereotype.Service;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import mouda.backend.auth.implement.GoogleUserInfoProvider;
import mouda.backend.auth.implement.JoinManager;
import mouda.backend.auth.implement.jwt.AccessTokenProvider;
Expand All @@ -16,7 +15,6 @@

@Service
@RequiredArgsConstructor
@Slf4j
public class GoogleAuthService {

private final JoinManager joinManager;
Expand All @@ -28,13 +26,9 @@ public class GoogleAuthService {
public LoginResponse login(GoogleLoginRequest request) {
String name = userInfoProvider.getName(request.idToken());
String identifier = userInfoProvider.getIdentifier(request.idToken());
log.warn("{} = 2 2 2", identifier);
Member member = memberFinder.getByIdentifier(identifier);
log.warn("{} = 3 3 3", member.getIdentifier());

if (member != null) {
log.warn("{} = 4 4 4", member.getIdentifier());

joinManager.rejoin(member);
memberWriter.updateName(member.getId(), name);
return new LoginResponse(accessTokenProvider.provide(member));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
import com.google.api.client.json.jackson2.JacksonFactory;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import mouda.backend.auth.exception.AuthErrorMessage;
import mouda.backend.auth.exception.AuthException;

@Component
@Slf4j
@RequiredArgsConstructor
public class GoogleUserInfoProvider {

Expand All @@ -41,7 +39,6 @@ private String getFullName(String familyName, String givenName) {

public String getIdentifier(String idToken) {
GoogleIdToken googleIdToken = getGoogleIdToken(idToken);
log.warn("{}", googleIdToken.getPayload().getSubject());
return googleIdToken.getPayload().getSubject();
}

Expand Down

0 comments on commit e2a4ae0

Please sign in to comment.