[user service] 사용자 멀티 디바이스 로그인 처리 deviceId 추가건
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
AUTH_USER_ID,
|
||||
CLAIM_NAME,
|
||||
REFRESH_TOKEN,
|
||||
DEVICE_ID,
|
||||
} from "@/shared/config";
|
||||
|
||||
export async function POST() {
|
||||
@@ -13,5 +14,6 @@ export async function POST() {
|
||||
cookieStore.delete(REFRESH_TOKEN);
|
||||
cookieStore.delete(AUTH_USER_ID);
|
||||
cookieStore.delete(CLAIM_NAME);
|
||||
cookieStore.delete(DEVICE_ID); // 로그아웃 시 deviceId 함께 삭제 → 재로그인 시 새 세션 생성
|
||||
return NextResponse.json({ message: "Logged out" }, { status: 200 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user