Skip to content

Commit

Permalink
Merge pull request #93 from jeevan-aj/fix-build-error
Browse files Browse the repository at this point in the history
fix : is SameSite:case sensitive ? trying it !
  • Loading branch information
jeevan-aj authored Dec 10, 2024
2 parents 1174c5b + d0f10b2 commit 0a23472
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions backend/controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ export const refreshToken = async (req, res, next) => {
.cookie("access_token", newAccessToken, {
httpOnly: true,
maxAge: 900000,
sameSite: "none",
secure: true,
domain: '.vercel.app'
SameSite: "None",
Secure: true,
Domain: '.vercel.app'
}) // 15 minutes
.cookie("refresh_token", newRefreshToken, {
httpOnly: true,
maxAge: 604800000,
sameSite: "none",
secure: true,
domain: '.vercel.app'
SameSite: "None",
Secure: true,
Domain: '.vercel.app'
}) // 7 days
.status(200)
.json({ accessToken: newAccessToken });
Expand Down Expand Up @@ -113,16 +113,16 @@ export const signIn = async (req, res, next) => {
.cookie("access_token", accessToken, {
httpOnly: true,
maxAge: 900000,
sameSite: "none",
secure: true,
domain: '.vercel.app'
SameSite: "None",
Secure: true,
Domain: '.vercel.app'
}) // 15 minutes
.cookie("refresh_token", refreshToken, {
httpOnly: true,
maxAge: 604800000,
sameSite: "none",
secure: true,
domain: ".vercel.app",
SameSite: "None",
Secure: true,
Domain: ".vercel.app",
}) // 7 days
.status(200)
.json(responsePayload);
Expand All @@ -147,8 +147,8 @@ export const google = async (req, res, next) => {
.cookie("access_token", token, {
httpOnly: true,
expires: expireDate,
sameSite: "none",
domain: ".vercel.app",
SameSite: "None",
Domain: ".vercel.app",
})
.status(200)
.json(rest);
Expand Down Expand Up @@ -178,7 +178,7 @@ export const google = async (req, res, next) => {
.cookie("access_token", token, {
httpOnly: true,
expires: expireDate,
sameSite: "none",
sameSite: "None",
secure: true,
domain: ".vercel.app",
})
Expand Down

0 comments on commit 0a23472

Please sign in to comment.