fix(auth): log user out when the current account does not exist
This commit is contained in:
parent
7a290116e8
commit
10bad95440
@ -307,7 +307,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
|
||||
return newUser
|
||||
} catch (e) {
|
||||
if(e?.response?.status === 401 ||
|
||||
if((e?.response?.status >= 400 && e?.response?.status < 500) ||
|
||||
e?.response?.data?.message === 'missing, malformed, expired or otherwise invalid token provided') {
|
||||
await logout()
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user