a
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-05-24 15:16:10 +02:00
parent 834a3aa959
commit 2e69e4eea7
1 changed files with 2 additions and 3 deletions

View File

@ -61,9 +61,8 @@ export default class Auth {
window.localStorage.renewPeriod = json.data.renewPeriod;
window.localStorage.renewInterval = json.data.renewInterval;
this.checkTokenValidity();
const intervalMilliseconds = 50 * 1000;
// setInterval(this.checkTokenValidity.bind(this), intervalMilliseconds);
const intervalMilliseconds = json.data.renewInterval * 1000;
setInterval(this.checkTokenValidity.bind(this), intervalMilliseconds);
});
}