Merge pull request 'Fixed refresh page reload bug' (#86) from feature/82-auth_refresh_bug into dev
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #86
This commit is contained in:
Nicolai Ort 2021-02-24 19:49:00 +00:00
commit 9cd94004fc

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) => {