Skip to content

Commit

Permalink
added secure
Browse files Browse the repository at this point in the history
  • Loading branch information
hongjun2002 committed Nov 9, 2023
1 parent 2c6e7da commit e0760ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Server/src/routes/authroutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ export const authroutes = () => {
return res
.cookie("accessToken", accessToken, {
httpOnly: true,
sameSite: 'none'
sameSite: 'none',
secure: true
})
.cookie("UserId", result, {
httpOnly: true,
sameSite: 'none'
sameSite: 'none',
secure: true
})
.status(200)
.json({message: "Logged In"});
Expand Down

0 comments on commit e0760ac

Please sign in to comment.