Compare commits

...

2 Commits

Author SHA1 Message Date
9cd94004fc 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
2021-02-24 19:49:00 +00:00
c5697242ee Fixed refresh page reload bug
ref #82
2021-02-24 19:17:18 +01:00

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