checkToken(); const requestInterceptors = axios.interceptors.request.use(function(){ checkToken(); });