refactor the logic of refreshing access_token (#10068)
This commit is contained in:
parent
de5dfd99f6
commit
302f4407f6
7 changed files with 171 additions and 185 deletions
|
|
@ -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')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue