authCode bug fixed