feat(auth): 랜딩 시작 분기와 앱 라우트 가드를 추가
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { create } from 'zustand';
|
||||
import Cookies from 'js-cookie';
|
||||
import { AuthResponse } from '@/features/auth/types';
|
||||
import { REFRESH_TOKEN_COOKIE_KEY, TOKEN_COOKIE_KEY } from '@/features/auth/model/constants';
|
||||
|
||||
interface AuthState {
|
||||
accessToken: string | null;
|
||||
@@ -12,10 +13,6 @@ interface AuthState {
|
||||
logout: () => void;
|
||||
}
|
||||
|
||||
// 쿠키 키 상수 정의
|
||||
const TOKEN_COOKIE_KEY = 'vr_access_token';
|
||||
const REFRESH_TOKEN_COOKIE_KEY = 'vr_refresh_token';
|
||||
|
||||
/**
|
||||
* VibeRoom 전역 인증(Auth) 상태 저장소
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user