From b098e53d3da37825f91eaa47f62c255889d9a250 Mon Sep 17 00:00:00 2001 From: dongree Date: Tue, 3 Dec 2024 23:25:12 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20chore:=20=EB=B6=88?= =?UTF-8?q?=ED=95=84=EC=9A=94=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/store/useAuthStore.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/FE/src/store/useAuthStore.ts b/FE/src/store/useAuthStore.ts index 0e9a9494..0ecf1d40 100644 --- a/FE/src/store/useAuthStore.ts +++ b/FE/src/store/useAuthStore.ts @@ -1,25 +1,15 @@ import { create } from 'zustand'; type AuthStore = { - accessToken: string | null; isLogin: boolean; - setAccessToken: (token: string) => void; setIsLogin: (isLogin: boolean) => void; - resetToken: () => void; }; const useAuthStore = create((set) => ({ - accessToken: null, isLogin: false, setIsLogin: (isLogin: boolean) => { set({ isLogin }); }, - setAccessToken: (token: string) => { - set({ accessToken: token, isLogin: token !== null }); - }, - resetToken: () => { - set({ accessToken: null, isLogin: false }); - }, })); export default useAuthStore;