You should verify that an Auth Code have been found:

    if( $authCode ) {
        $this->authCodeManager->deleteAuthCode($authCode);
    }