Added functionality to refresh the access token