Fix the issue in parsing the OAuth code