Skip to content

Commit

Permalink
feat: updated the common package
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyan0077 committed Aug 24, 2024
1 parent dc1f36f commit 1a8b9d2
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 43 deletions.
14 changes: 7 additions & 7 deletions api-gateway/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
8 changes: 4 additions & 4 deletions auth-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion auth-service/src/_lib/common/middlewares/jwtMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: true,
sameSite: 'none',
});
}
Expand Down
8 changes: 4 additions & 4 deletions chat-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chat-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"concurrently": "^8.2.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion chat-service/src/_lib/common/middlewares/jwtMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: true,
sameSite: 'none',
});
}
Expand Down
8 changes: 4 additions & 4 deletions course-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion course-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: true,
sameSite: 'none',
});
}
Expand Down
8 changes: 4 additions & 4 deletions notification-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion notification-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@sendgrid/mail": "^8.1.3",
"concurrently": "^8.2.2",
"cookie-parser": "^1.4.6",
Expand Down
8 changes: 4 additions & 4 deletions payment-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion payment-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: true,
sameSite: 'none',
});
}
Expand Down
8 changes: 4 additions & 4 deletions user-service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion user-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@eduverse/common": "^1.0.9",
"@eduverse/common": "^1.0.10",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion user-service/src/_lib/common/middlewares/jwtMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
secure: true,
sameSite: 'none',
});
}
Expand Down

0 comments on commit 1a8b9d2

Please sign in to comment.