Moved OAuth API call to the access token callback method