5554-renovar_token #1566

Merged
vicent merged 24 commits from 5554-renovar_token into dev 2023-06-20 12:38:47 +00:00
1 changed files with 0 additions and 20 deletions
Showing only changes of commit fdd22ca2d8 - Show all commits

View File

@ -10,7 +10,6 @@ export class Layout extends Component {
$onInit() {
this.getUserData();
// this.getAccessTokenConfig();
}
getUserData() {
@ -28,25 +27,6 @@ export class Layout extends Component {
return `/api/Images/user/160x160/${userId}/download?access_token=${token}`;
}
getAccessTokenConfig() {
this.$http.get('AccessTokenConfigs/findOne').then(json => {
window.localStorage.renewPeriod = json.data.renewPeriod;
window.localStorage.renewInterval = json.data.renewInterval;
const intervalMilliseconds = 1 * 1000;
const intervalID = setInterval(this.checkTokenValidity, intervalMilliseconds);
});
}
checkTokenValidity() {
console.log('checkTokenValidity');
// this.$http.post('VnUsers/renewToken')
// .then(() => {
// console.log('fin');
// });
}
refresh() {
window.location.reload();
}