/**
  * Clears the auth code from the given $gp array and
  * the global $gp array
  *
  * @param array $gp
  * @return array
  */
 public function clearAuthCodeFromGP($gp)
 {
     $globalGP = $this->globals->getGP();
     unset($globalGP['authCode']);
     unset($globalGP['authCodeData']);
     unset($globalGP['authCodeRecord']);
     $this->globals->setGP($globalGP);
     unset($gp['authCode']);
     unset($gp['authCodeData']);
     unset($gp['authCodeRecord']);
     return $gp;
 }