Skip to content

Commit

Permalink
Merge pull request #131
Browse files Browse the repository at this point in the history
Fix: #129 Cookie 설정 변경
  • Loading branch information
BYEONGRYEOL authored Aug 19, 2024
2 parents e5000d9 + 7a57bf9 commit 35b85bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -91,12 +91,10 @@ public void kakaoRedirectLogin(
refreshToken = refreshToken.substring(JWTConstants.JWT_PREFIX.length());

Cookie accessTokenCookie = new Cookie("Access-Token", accessToken);
accessTokenCookie.setHttpOnly(true);
accessTokenCookie.setPath("/");
accessTokenCookie.setPath("/login/kakao/success");

Cookie refreshTokenCookie = new Cookie("Refresh-Token", refreshToken);
refreshTokenCookie.setHttpOnly(true);
refreshTokenCookie.setPath("/");
refreshTokenCookie.setPath("/login/kakao/success");

response.addCookie(accessTokenCookie);
response.addCookie(refreshTokenCookie);

0 comments on commit 35b85bb

Please sign in to comment.