diff --git a/front/core/services/auth.js b/front/core/services/auth.js index d1ac4c78d..17323fadf 100644 --- a/front/core/services/auth.js +++ b/front/core/services/auth.js @@ -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); }); }