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