diff --git a/src/main/java/com/trendithon/timetris/global/auth/oauth/handler/OAuth2SuccessHandler.java b/src/main/java/com/trendithon/timetris/global/auth/oauth/handler/OAuth2SuccessHandler.java index feeb027..8f78c8d 100644 --- a/src/main/java/com/trendithon/timetris/global/auth/oauth/handler/OAuth2SuccessHandler.java +++ b/src/main/java/com/trendithon/timetris/global/auth/oauth/handler/OAuth2SuccessHandler.java @@ -12,6 +12,7 @@ import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.util.UriComponentsBuilder; import java.io.IOException; @@ -48,8 +49,8 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo request.getSession().setAttribute("name", userName); request.getSession().setAttribute("picture", imgUrl); - response.sendRedirect("/main"); - //response.sendRedirect(UriComponentsBuilder.fromUriString("http://localhost:3000/").toUriString()); + //response.sendRedirect("/main"); + response.sendRedirect(UriComponentsBuilder.fromUriString("http://localhost:3000/").toUriString()); } catch (Exception e) { throw e;