feat(auth): 랜딩 시작 분기와 앱 라우트 가드를 추가

This commit is contained in:
2026-03-10 13:30:09 +09:00
parent 1c55f74132
commit 92a509ebb6
7 changed files with 848 additions and 68 deletions

View File

@@ -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) 상태 저장소
*/