removed vuejs logger completely, upgraded to vue 4.x validation not yet working

This commit is contained in:
2020-07-30 16:42:32 +02:00
parent 0a885f1750
commit d26cc1492d
23 changed files with 5436 additions and 2354 deletions

View File

@@ -138,13 +138,11 @@
});
this.$nextTick(() => {
window.setInterval(() => {
// this.$log.debug(getRemainingJwtValiditySeconds(this.$store.state.access_token));
const tokenValidity = getRemainingJwtValiditySeconds(this.$store.state.access_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) {
this.$store.dispatch('refreshToken'); // renew access token
}