Add automatic user token renew (#43)

This commit is contained in:
konrad 2019-12-19 20:50:07 +00:00
parent 6b7fe8ee47
commit ed4d41e2d8
2 changed files with 22 additions and 2 deletions

View file

@ -248,6 +248,11 @@
window.location.reload();
}
);
// Schedule a token renew every 60 minutes
setTimeout(() => {
auth.renewToken()
}, 1000 * 60 * 60)
},
watch: {
// call the method again if the route changes