Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config/cookie.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const accessTokenOption = {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
maxAge: 1000 * 60 * 60 * 3,
path: "/",
Expand All @@ -9,7 +9,7 @@ const accessTokenOption = {

const refreshTokenOption = {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
maxAge: 1000 * 60 * 60 * 24 * 7,
path: "/",
Expand All @@ -18,7 +18,7 @@ const refreshTokenOption = {

const clearAccessTokenOption = {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
maxAge: 0,
path: "/",
Expand All @@ -27,7 +27,7 @@ const clearAccessTokenOption = {

const clearRefreshTokenOption = {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
maxAge: 0,
path: "/",
Expand Down
4 changes: 2 additions & 2 deletions controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const handleSpringAuth = async (req, res) => {
// 쿠키에 토큰 저장
res.cookie("accessToken", result.accessToken, {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
});

res.cookie("refreshToken", result.refreshToken, {
httpOnly: true,
secure: false,
secure: true,
sameSite: "None",
});

Expand Down
Loading