Skip to content

Commit

Permalink
bug: 리프레시토큰 재발급시 401 Exception 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
pyg410 authored Apr 9, 2024
1 parent 419b1df commit 79bd2e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public WrapLoginResDTO login(HttpServletResponse response, LoginReqDTO loginReqD
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.set(HttpHeaders.AUTHORIZATION, accessToken);

CookieUtil.addCookie(response, "refresh-token", refreshToken, (int) refreshTokenExpiration.toEpochMilli());
CookieUtil.addCookie(response, "refresh-token", refreshToken.getToken(), (int) refreshTokenExpiration.toEpochMilli());

return WrapLoginResDTO.builder()
.headers(httpHeaders)
Expand Down

0 comments on commit 79bd2e3

Please sign in to comment.