Only process OAuth code if necessary