[common] 권한 URL 검색 추가

This commit is contained in:
2026-09-28 14:26:46 +09:00
parent 454b9e474f
commit 694aee4804
4 changed files with 27 additions and 8 deletions
+1 -3
View File
@@ -27,7 +27,7 @@ class Client {
this.axiosInstance.interceptors.request.use((config) => {
// X-Device-Id 자동 주입 로직 (기기에 고유한 UUID 세팅 및 쿠키/로컬스토리지 보관)
let deviceId = Cookies.get("device-id");
let deviceId = Cookies.get("device-id") || Cookies.get(DEVICE_ID_KEY);
if (!deviceId && typeof window !== "undefined") {
deviceId = localStorage.getItem("device-id") || undefined;
if (!deviceId) {
@@ -43,7 +43,6 @@ class Client {
const token = Cookies.get(CLAIM_NAME);
const userId = Cookies.get(AUTH_USER_ID);
const deviceId = Cookies.get(DEVICE_ID_KEY);
if (!token || !userId) {
return config;
@@ -51,7 +50,6 @@ class Client {
config.headers[CLAIM_NAME] = token;
config.headers[AUTH_USER_ID] = userId;
config.headers["X-Device-Id"] = deviceId;
return config;
});