Merge pull request #5 from nightbug-xx/codex/remove-unused-token_type-and-clean-up-logic

Remove unused token_type logic
This commit is contained in:
nightbug-xx 2025-06-09 18:43:29 +09:00 committed by GitHub
commit 13ffffd8cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

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

View File

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