Fixed non-automatic logout

closes #38
This commit is contained in:
2021-02-19 18:49:07 +01:00
parent afd73d53be
commit 896fff04aa
2 changed files with 7 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ const store = () => {
const jwtinfo = JSON.parse(atob(auth.access_token.split('.')[1]));
state.jwtinfo = jwtinfo;
localForage.setItem('logindata', auth);
});
}).catch(this.logout());
},
login(auth, jwtinfo) {
update((state) => {