We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d099a2f commit 4fff733Copy full SHA for 4fff733
src/controllers/user.controller.ts
@@ -8,6 +8,9 @@ import { fetchVelogApi } from '@/modules/velog/velog.api';
8
9
type Token10 = string & { __lengthBrand: 10 };
10
11
+// eslint-disable-next-line @typescript-eslint/naming-convention
12
+const THREE_WEEKS_IN_MS = 21 * 24 * 60 * 60 * 1000;
13
+
14
export class UserController {
15
constructor(private userService: UserService) {}
16
@@ -21,7 +24,9 @@ export class UserController {
21
24
22
25
if (isProd) {
23
26
baseOptions.sameSite = 'lax';
- baseOptions.domain = 'velog-dashboard.kro.kr';
27
+ baseOptions.domain = "velog-dashboard.kro.kr";
28
+ baseOptions.maxAge = THREE_WEEKS_IN_MS; // 3주
29
30
} else {
31
baseOptions.domain = 'localhost';
32
}
0 commit comments