diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index a6a69d418..f4c36bfd7 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -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