Skip to content

Commit

Permalink
Merge pull request #122 from modern-agile-team/feature/auth
Browse files Browse the repository at this point in the history
Test(NicoDora/auth) : cookie 설정
  • Loading branch information
NicoDora authored Nov 14, 2023
2 parents 4bf632c + be4a6dd commit 2de7eff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/auth/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class AuthController {
res.cookie('refresh_token', refreshToken, {
httpOnly: true,
sameSite: 'lax',
path: '/',
maxAge: 1000 * 60 * 60 * 24 * 7, // 7일
});

Expand Down Expand Up @@ -83,6 +84,7 @@ export class AuthController {
res.cookie('refresh_token', refreshToken, {
httpOnly: true,
sameSite: 'lax',
path: '/',
maxAge: 1000 * 60 * 60 * 24 * 7, // 7일
});

Expand Down

0 comments on commit 2de7eff

Please sign in to comment.