Skip to content

Commit

Permalink
Feat: 쿠키 만료시간 설정
Browse files Browse the repository at this point in the history
- 리프레시 토큰 쿠키의 만료시간을 2주로 설정
Related to #21
  • Loading branch information
Zamoca42 committed Jan 27, 2024
1 parent d1055a4 commit cb46b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/common/config/cookie.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import { CookieOptions } from 'express';
export const cookieOptions: CookieOptions = {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
maxAge: 14 * 24 * 60 * 60 * 1000,
};

0 comments on commit cb46b6c

Please sign in to comment.