when the token expires, it should give a response code 401. In this case you can call a new function to get a fresh token and replace the old token with the response received.
when the token expires, it should give a response code 401. In this case you can call a new function to get a fresh token and replace the old token with the response received.