Skip to content

Commit

Permalink
쿠키 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeSung98 committed Nov 28, 2023
1 parent 2067900 commit 2e9b0c6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
cookieToken.setMaxAge(3 * 60 * 60);
response.addCookie(cookieToken);

String userinfo = authUserDTO.getEmail() + "," + authUserDTO.getName() + "," + authUserDTO.getImage();
String userinfo = authUserDTO.getEmail() + "|" + authUserDTO.getName() + "|" + authUserDTO.getImage();
Cookie cookieUserinfo = new Cookie("userinfo", userinfo);
cookieUserinfo.setHttpOnly(true);
cookieUserinfo.setMaxAge(3 * 60 * 60);
response.addCookie(cookieUserinfo);

if(authUserDTO.isFromSocial()) {
redirectStrategy.sendRedirect(request, response, "https://weatherfit-frontend.vercel.app/");
}
else {
} else {
response.setContentType("application/json;charset=utf-8");
response.getWriter().write(result);
}
Expand Down

0 comments on commit 2e9b0c6

Please sign in to comment.