changed a lot regarding rec state, etc.
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -118,7 +118,7 @@
|
||||
},
|
||||
refreshToken() {
|
||||
this.$store.dispatch('refreshToken');
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
EventBus.$on('failedLoadingRecorders', (msg) => {
|
||||
@@ -132,11 +132,11 @@
|
||||
});
|
||||
this.$nextTick(() => {
|
||||
window.setInterval(() => {
|
||||
//this.$log.debug(getRemainingJwtValiditySeconds(this.$store.state.access_token));
|
||||
let tokenValidity = getRemainingJwtValiditySeconds(this.$store.state.access_token);
|
||||
// this.$log.debug(getRemainingJwtValiditySeconds(this.$store.state.access_token));
|
||||
const tokenValidity = getRemainingJwtValiditySeconds(this.$store.state.access_token);
|
||||
|
||||
//this.tokenValidity = this.tokenValidity.format('mm:ss');
|
||||
let refreshTokenValidity = getRemainingJwtValiditySeconds(this.$store.state.refresh_token);
|
||||
// this.tokenValidity = this.tokenValidity.format('mm:ss');
|
||||
const refreshTokenValidity = getRemainingJwtValiditySeconds(this.$store.state.refresh_token);
|
||||
|
||||
// this.$log.debug(this.$store.state);
|
||||
if (tokenValidity < 50 && refreshTokenValidity > 30 && this.autoRenewSession && !this.refreshFailed) {
|
||||
@@ -170,7 +170,7 @@
|
||||
profile() {
|
||||
return this.$store.state.profile;
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user