refactor the logic of refreshing access_token (#10068)

This commit is contained in:
NFish 2024-11-05 12:38:31 +08:00 • committed by GitHub
commit 302f4407f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 171 additions and 185 deletions

View file

@ -47,8 +47,9 @@ export default function AppSelector({ isMobile }: IAppSelector) {
params: {},
})
if (localStorage?.getItem('console_token'))
localStorage.removeItem('console_token')
localStorage.removeItem('setup_status')
localStorage.removeItem('console_token')
localStorage.removeItem('refresh_token')
router.push('/signin')
}