title: How to handle JWT token expiry in react native and redux app
body: <p>I am fairly new to implementing JWT. I had a few questions while implementing JWT. I am using axios to make requests.
  When the user logs in or registers. I get an accessToken, which expires in a few days. I dont have a refreshToken because I think the backend is built on django rest framework.</p>
  
  <p>Now if I get a status code of 401 in a request, I try to check if the token has expired and if yes, then refresh the accessToken, but at times even the refresh token api returns 400 suggesting that this token is also expired, at which point I need the user to log out. </p>
  
  <p>I think this is a bad User Experience, Why is that we cannot refresh the token using old token. Is there a way to keep it from expiring? Can anyone point me to an example which solves the following problem with a correct implementation of axios interceptors?</p>