Skip to content

Commit

Permalink
refactor : 헤더에 토큰 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
zini9188 committed Nov 21, 2023
1 parent b735f50 commit 7c4ba5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ private void loginSuccess(HttpServletRequest request, HttpServletResponse respon
cookie.setHttpOnly(false);
cookie.setSecure(false); // HTTPS를 사용할 때만 쿠키가 전송되도록 설정
response.addCookie(cookie); // 쿠키를 응답에 추가
response.setHeader("Authorization", accessToken);

log.info("cookie : {}", cookie);
log.info("oauth email : {} login success", oAuth2User.getUserId());
log.info("oauth role : {}", oAuth2User.getRoles());
log.info("accessToken 여기까진 온다 : {}", accessToken);

String redirectUrl = "http://localhost:5173/login";
String redirectUrl = "http://localhost:5173/login";

log.info("Url : {}", redirectUrl);

Expand Down

0 comments on commit 7c4ba5e

Please sign in to comment.