title: How to automatically call an api before each api call in axios in react
body: <p>Suppose I want to call an api(for session) before each api call , api should be called automatically before any other api call.
  How I can achieve this in axios in react.
  I want to do it globally for whole project.</p>