Skip to content

Commit

Permalink
♻️ 쿠키 clear 로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jjikky committed Jun 29, 2024
1 parent e71eb4b commit c1ce0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/user/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ exports.getProfile = (req, res) => {
};

exports.logout = (_, res) => {
res.cookie('accessToken', '', { ...config.cookieInAccessTokenOptions, maxAge: 0 });
res.cookie('refreshToken', '', { ...config.cookieInRefreshTokenOptions, maxAge: 0 });
res.clearCookie('accessToken');
res.clearCookie('refreshToken');
return sendResponse.ok(res, {
message: SucesssMessage.LOGOUT_SUCCESS,
});
Expand Down

0 comments on commit c1ce0e9

Please sign in to comment.