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:
commit
13ffffd8cd
@ -23,7 +23,6 @@ api.interceptors.response.use(
|
||||
if (error.response?.status === 401) {
|
||||
// 로그아웃 처리
|
||||
localStorage.removeItem('access_token')
|
||||
localStorage.removeItem('token_type')
|
||||
// 리로드 또는 리다이렉트
|
||||
window.location.href = '/login'
|
||||
}
|
||||
|
||||
@ -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 동시 반영
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user