From 51bbad979448c4548631a801996c93e6234a0553 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 15 Dec 2020 12:30:02 +0100 Subject: [PATCH] Log the user out if the token could not be renewed --- src/store/modules/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index d6f8a440..b431d53e 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -185,6 +185,7 @@ export default { .catch(e => { // eslint-disable-next-line console.log('Error renewing token: ', e) + ctx.dispatch('logout') }) }, logout(ctx) {