refresh oauth token using extjs
<p>I am using extjs Ext.Ajax.request to call REST APIs from my app. I am using oauth to authenticate the REST APIs. I need to add logic to refresh token if token is expired while calling ext.ajax.request and then if expired, then refresh the token and call the API again using the same mechanism. How can I achieve that without making changes in each of the ext.ajax.request calls?</p>