Fixed refresh page reload bug

ref #82
This commit is contained in:
Nicolai Ort 2021-02-24 19:17:18 +01:00
parent ad638e8bc8
commit c5697242ee

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());
}).catch(()=>{this.logout();});
},
login(auth, jwtinfo) {
update((state) => {