When the access token expired, the token is refreshed, but the new token is not used to invoke the apis resulting in failing the api calls.