diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 6dd48623c..d00799c6d 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -186,7 +186,12 @@ export default { .catch(e => { // eslint-disable-next-line console.log('Error renewing token: ', e) - ctx.dispatch('logout') + + // Don't logout on network errors as the user would then get logged out if they don't have + // internet for a short period of time - such as when the laptop is still reconnecting + if (e.request.status) { + ctx.dispatch('logout') + } }) }, logout(ctx) {