Skip to content

Commit

Permalink
Comment:쿠키 리프레쉬 토큰 주석제거
Browse files Browse the repository at this point in the history
  • Loading branch information
cleooo5857 committed Sep 14, 2023
1 parent 9857641 commit 3628d09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/repository/userStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export const userStorage = {

localStorage.setItem(USER_TOKENS, stringifyAccessToken);
localStorage.setItem(REFRESH_TOKEN_COOKIE, stringifyRefreshToken);
// Cookies.set(REFRESH_TOKEN_COOKIE, stringifyRefreshToken, {
// secure: isProduction,
// sameSite: 'lax',
// expires: 7,
// domain: isProduction ? process.env.REACT_APP_API_URL : undefined,
// });
Cookies.set(REFRESH_TOKEN_COOKIE, stringifyRefreshToken, {
secure: isProduction,
sameSite: 'lax',
expires: 7,
domain: isProduction ? process.env.REACT_APP_API_URL : undefined,
});
},
remove() {
localStorage.removeItem(USER_TOKENS);
Expand Down

0 comments on commit 3628d09

Please sign in to comment.