Compare commits

..

No commits in common. "be629e5c6b076bf9a28dcc953e97478d244d8413" and "ee01c3a059c435add68938657955cbd2c5851c50" have entirely different histories.

View File

@ -27,8 +27,6 @@ const store = () => {
AuthService.authControllerRefresh({ token: state.auth.refresh_token }).then((auth) => {
console.log('got new auth');
OpenAPI.TOKEN = auth.access_token;
const jwtinfo = JSON.parse(atob(auth.access_token.split('.')[1]));
state.jwtinfo = jwtinfo;
localForage.setItem('logindata', auth);
});
},
@ -41,8 +39,8 @@ const store = () => {
//
state.refreshInterval = setInterval(() => {
this.refreshAuth();
// 2min
}, 2 * 60000);
// 4min
}, 4 * 60000);
//
return state;
});