Skip to content

Commit

Permalink
Update jwtToken.js
Browse files Browse the repository at this point in the history
  • Loading branch information
UserAK04 authored Jul 14, 2024
1 parent b4b986b commit 582b723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/utils/jwtToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const generateToken = (user, message, statusCode, res) => {
Date.now() + process.env.COOKIE_EXPIRE * 24 * 60 * 60 * 1000
),
httpOnly: true,
secure: true,
sameSite: "None"
})
.json({
success: true,
Expand Down

0 comments on commit 582b723

Please sign in to comment.