Skip to content

Commit 8925c94

Browse files
Merge pull request #542 from Podo-Store/develop
fix: 소셜 로그인 배포 버전
2 parents af144b2 + e1e76db commit 8925c94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/PodoeMarket/podoemarket/user/controller/OauthController.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public void callback(@PathVariable(name = "socialLoginType") SocialLoginType soc
5353

5454
// 프론트로 리디렉트
5555
response.sendRedirect(
56-
"http://localhost:3000/auth/callback" +
57-
// "https://www.podo-store.com/auth/callback" +
56+
// "http://localhost:3000/auth/callback" +
57+
"https://www.podo-store.com/auth/callback" +
5858
"?result=LOGIN" +
5959
"&accessToken=" + token.getAccessToken() +
6060
"&refreshToken=" + token.getRefreshToken() +
@@ -68,15 +68,15 @@ public void callback(@PathVariable(name = "socialLoginType") SocialLoginType soc
6868
String tempCode = tempAuthService.store(oauthUser);
6969

7070
response.sendRedirect(
71-
"http://localhost:3000/auth/callback" +
72-
// "https://www.podo-store.com/auth/callback" +
71+
// "http://localhost:3000/auth/callback" +
72+
"https://www.podo-store.com/auth/callback" +
7373
"?result=REQUIRE_TERMS" +
7474
"&tempCode=" + tempCode
7575
);
7676
} catch(Exception e) {
7777
e.printStackTrace();
78-
response.sendRedirect("http://localhost:3000/auth/callback?error=" + URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8));
79-
// response.sendRedirect("https://www.podo-store.com/auth/callback?error=" + URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8));
78+
// response.sendRedirect("http://localhost:3000/auth/callback?error=" + URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8));
79+
response.sendRedirect("https://www.podo-store.com/auth/callback?error=" + URLEncoder.encode(e.getMessage(), StandardCharsets.UTF_8));
8080
}
8181
}
8282

0 commit comments

Comments
 (0)