261102_02_ENH: 공용 JWT 쿠키 Domain 적용 조건을 환경변수 값 기준으로 변경
This commit is contained in:
@@ -12,7 +12,7 @@ export const setAuthCookie = (response: NextResponse, token: string) => {
|
|||||||
sameSite: "lax",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
} as const;
|
} as const;
|
||||||
const domain = secure ? serverEnv.AUTH_COOKIE_DOMAIN : undefined;
|
const domain = serverEnv.AUTH_COOKIE_DOMAIN;
|
||||||
|
|
||||||
response.cookies.set(CookieKeys.AuthToken, token, {
|
response.cookies.set(CookieKeys.AuthToken, token, {
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
Reference in New Issue
Block a user