Skip to content

Commit

Permalink
[HOTFIX] 프론트 요청 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkim817 committed Oct 21, 2024
1 parent ec5ac6d commit 009a0ca
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.sopt.seonyakServer.global.common.external.client.service;

import feign.FeignException;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -9,6 +10,8 @@
import org.sopt.seonyakServer.global.common.external.client.dto.MemberLoginRequest;
import org.sopt.seonyakServer.global.common.external.client.google.GoogleAccessTokenClient;
import org.sopt.seonyakServer.global.common.external.client.google.GoogleUserClient;
import org.sopt.seonyakServer.global.exception.enums.ErrorType;
import org.sopt.seonyakServer.global.exception.model.CustomException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -40,12 +43,12 @@ public MemberInfoResponse login(
) {
String accessToken;

// try {
// 인가 코드로 Access Token 받아오기
accessToken = getOAuth2Authentication(authorizationCode, loginRequest.redirectUri());
// } catch (FeignException e) {
// throw new CustomException(ErrorType.EXPIRED_AUTHENTICATION_CODE);
// }
try {
// 인가 코드로 Access Token 받아오기
accessToken = getOAuth2Authentication(authorizationCode, "https://www.seonyak.com/auth/google");
} catch (FeignException e) {
throw new CustomException(ErrorType.EXPIRED_AUTHENTICATION_CODE);
}

GoogleUserInfoResponse response = getGoogleUserInfo(accessToken);

Expand Down

0 comments on commit 009a0ca

Please sign in to comment.