Skip to content

Commit

Permalink
udpated jwt verify in common
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyan0077 committed Aug 23, 2024
1 parent e443864 commit c465f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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.6",
"@eduverse/common": "^1.0.8",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
Expand Down
4 changes: 2 additions & 2 deletions auth-service/src/_lib/common/middlewares/jwtMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const jwtMiddleware = async (req: Request, res: Response, next: NextFunct
});
res.cookie("access_token", newAccessToken, {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'strict',
// secure: process.env.NODE_ENV === 'production',
// sameSite: 'strict',
});
}
}
Expand Down

0 comments on commit c465f8e

Please sign in to comment.