Improve code
Rename doGetAccessTokenRequest to doGetTokenRequest so that it can be used to retrieve the refresh token