Remove unused token_type logic

This commit is contained in:
nightbug-xx 2025-06-09 18:41:32 +09:00
parent 2166685131
commit d2efeee720
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ api.interceptors.response.use(
if (error.response?.status === 401) {
// 로그아웃 처리
localStorage.removeItem('access_token')
localStorage.removeItem('token_type')
// 리로드 또는 리다이렉트
window.location.href = '/login'
}

View File

@ -20,7 +20,7 @@ export default function Login() {
password,
})
const { access_token, token_type } = res.data
const { access_token } = res.data
console.log('로그인 성공:', access_token)
login(access_token) // ✅ 전역 상태 + localStorage 동시 반영