쿠키 유틸 파일 경로 수정

This commit is contained in:
yschoi
2025-07-10 13:13:07 +09:00
parent de4f8d618f
commit 1ec26b3de2
9 changed files with 9 additions and 6 deletions
@@ -1,4 +1,4 @@
import { getCookie } from "@/components/lib/utils";
import { getCookie } from "@/shared/lib";
import { ENDPOINT } from "../api/attachment/attachment-service";
const AUTH_USER_ID = process.env.NEXT_PUBLIC_AUTH_USER_ID || "token-id";
@@ -1,5 +1,5 @@
import { Upload, type HttpResponse } from "tus-js-client";
import { getCookie, setCookie } from "@/components/lib/utils";
import { getCookie, setCookie } from "@/shared/lib";
import { ENDPOINT } from "../api/attachment/attachment-service";
const AUTH_USER_ID = process.env.NEXT_PUBLIC_AUTH_USER_ID || "token-id";
@@ -1,4 +1,3 @@
export * from "./cookie";
export * from "./fileUploadUtil";
export * from "./fileDownload";
export * from './date'
@@ -6,7 +6,7 @@ import { client } from "@/shared/api";
import type { IUserInfo } from "@/shared/store";
import { useUserStore } from "@/shared/lib";
import { ENDPOINT, AUTH_USER_ID } from "@/shared/config";
import { getCookie } from "@/components/lib/utils";
import { getCookie } from "@/shared/lib";
import axios from "axios";
import { LoginApi } from "../api/login-service";
import { tokenManager } from "../lib/token-manager";
@@ -1,5 +1,5 @@
import { AUTH_USER_ID, CLAIM_NAME } from "@/shared/config";
import { getCookie, setCookie, removeCookie } from "@/components/lib/utils";
import { getCookie, setCookie, removeCookie } from "@/shared/lib";;
export class TokenManager {
private static instance: TokenManager;
@@ -4,7 +4,7 @@ import { useEffect } from "react";
import { usePathname, useRouter } from "next/navigation";
import { MenuAuthorityApi } from "@/entities/menu-authority/@x/menu";
import { useAlertStore, useMenuStore } from "@/shared/lib";
import { getCookie } from "@/components/lib/utils";
import { getCookie } from "@/shared/lib";;
import { SITE_ID } from "@/shared/config";
import { MenuApi } from "../api/menu-service";
import { getCurrentMenu } from "./utils";
+3
View File
@@ -1,6 +1,9 @@
import { Client } from "@common/network";
import { BASE_URL } from "../config/api";
import { SITE_ID } from "../config/env";
import { setCookie } from "../lib";
setCookie("site-id-key", SITE_ID);
export const client = Client.getInstance({
baseURL: BASE_URL,
+1
View File
@@ -3,3 +3,4 @@ export { useAlertStore } from "./use-alert-store";
export { useMenuStore } from "./use-menu-store";
export { useUserStore } from "./use-user-store";
export { usePrompt } from "./use-prompt";
export { getCookie, setCookie, removeCookie } from "./cookie";