refactoring oauth requests to re-token and re-try