Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { fetchVelogApi } from '@/modules/velog/velog.api';

type Token10 = string & { __lengthBrand: 10 };

// eslint-disable-next-line @typescript-eslint/naming-convention
const THREE_WEEKS_IN_MS = 21 * 24 * 60 * 60 * 1000;

export class UserController {
constructor(private userService: UserService) { }

Expand All @@ -22,6 +25,7 @@ export class UserController {
if (isProd) {
baseOptions.sameSite = 'lax';
baseOptions.domain = "velog-dashboard.kro.kr";
baseOptions.maxAge = THREE_WEEKS_IN_MS; // 3주
} else {
baseOptions.domain = 'localhost';
}
Expand Down
Loading