In my react app, i use axios interceptor to refresh auth token. In my app, i use context and use reducre. there will be seprate files for context and reducer like this,