Skip to content

Commit

Permalink
fix: 리다이렉트 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
veronees committed Nov 26, 2024
1 parent 823ce39 commit 584b7ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class AuthController {
private final MemberService memberService;

private final static String LOGIN_SUCCESS_REDIRECT_URL = "https://ecomarket-cuk.netlify.app";
private final static String LOGIN_SUCCESS_REDIRECT_URL_LOCAL = "http://localhost:5173";

@Operation(
summary = "카카오 로그인 페이지로 리다이렉트 API",
Expand All @@ -58,7 +59,7 @@ public void callBack(
LoginSuccessDto loginSuccessDto = memberService.login(memberInfo);

String redirectUrl =
LOGIN_SUCCESS_REDIRECT_URL + "?isFirstLogin=" + loginSuccessDto.getIsFirstLogin()
LOGIN_SUCCESS_REDIRECT_URL_LOCAL + "?isFirstLogin=" + loginSuccessDto.getIsFirstLogin()
+ "&accessToken=" + loginSuccessDto.getTokenResponseDto().getAccessToken()
+ "&refreshToken=" + loginSuccessDto.getTokenResponseDto().getRefreshToken();

Expand Down

0 comments on commit 584b7ec

Please sign in to comment.