Skip to content

Commit

Permalink
hotfix production login
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsume-197 committed Aug 12, 2024
1 parent 9fb4e87 commit d5768ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/controllers/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export const logIn = async (
res.cookie('access_token', token, {
expires: new Date(Date.now() + (maxAgeJWT * 1000)),
httpOnly: true,
secure: true
secure: true,
sameSite: 'none'
});

const data_user = {
Expand Down Expand Up @@ -328,7 +329,8 @@ export const loginGoogle = async (
res.cookie('access_token', token, {
expires: new Date(Date.now() + (maxAgeJWT * 1000)),
httpOnly: true,
secure: true
secure: true,
sameSite: 'none'
});

const data_user = {
Expand Down Expand Up @@ -439,7 +441,8 @@ export const loginDiscord = async (
res.cookie('access_token', token, {
expires: new Date(Date.now() + (maxAgeJWT * 1000)),
httpOnly: true,
secure: true
secure: true,
sameSite: 'none'
});

const data_user = {
Expand Down

0 comments on commit d5768ee

Please sign in to comment.