Skip to content

Commit

Permalink
cookie policy set sameSite as none for cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Md-Rubel-Ahmed-Rana committed Jul 6, 2024
1 parent bf40a9d commit d10ca6a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/dist/controllers/googleOAuth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Controller extends rootController_1.default {
const result = yield googleOAuth_service_1.GoogleOAuthService.login(req.user);
res.cookie("tmAccessToken", result, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: true,
});
res.redirect(envConfig_1.config.google.redirectUrl);
Expand Down
2 changes: 1 addition & 1 deletion backend/dist/controllers/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Controller extends rootController_1.default {
const result = yield user_service_1.UserService.login(email, password);
res.cookie("tmAccessToken", result, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: true,
});
this.apiResponse(res, {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/controllers/googleOAuth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Controller extends RootController {
const result: string = await GoogleOAuthService.login(req.user);
res.cookie("tmAccessToken", result, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: true,
});
res.redirect(config.google.redirectUrl);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Controller extends RootController {
const result = await UserService.login(email, password);
res.cookie("tmAccessToken", result, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: true,
});
this.apiResponse(res, {
Expand Down

0 comments on commit d10ca6a

Please sign in to comment.