Skip to content

Commit 1d3b699

Browse files
authored
Merge pull request #244 from TeamLearningFlow/develop
Develop
2 parents b47ca88 + 76b4b7f commit 1d3b699

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/learningFlow/learningFlow_BE/security/handler/OAuth2LoginSuccessHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
7070
window.close();
7171
}
7272
</script>
73-
""", "http://localhost:3000", temporaryToken);
73+
""", frontendUrl, temporaryToken);
7474

7575
response.setContentType("text/html;charset=UTF-8");
7676
response.getWriter().write(redirectScript);
@@ -140,7 +140,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
140140
String redirectScript = "<script>" +
141141
" window.opener.postMessage({" +
142142
" accessToken: '" + accessToken + "'" +
143-
" }, 'http://localhost:3000');" + // 프론트엔드 origin
143+
" }, 'https://onboarding-kappa.vercel.app');" + // 프론트엔드 origin
144144
" window.close();" +
145145
"</script>";
146146
response.setContentType("text/html;charset=UTF-8");

0 commit comments

Comments
 (0)