/**
  * {@inheritdoc}
  */
 public function markAuthCodeAsUsed($code)
 {
     $authCode = $this->authCodeManager->findAuthCodeByToken($code);
     if (null !== $authCode) {
         $this->authCodeManager->deleteAuthCode($authCode);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getAuthCode($code)
 {
     return $this->authCodeManager->findAuthCodeByToken($code);
 }