Make this local to your getAccessToken method to avoid deadlock.