src/Server.php
public function generateSignRequest(RegistrationInterface $reg): SignRequest
    {
        return (new SignRequest())
            ->setAppId($this->getAppId())
            ->setChallenge($this->generateChallenge())
            ->setKeyHandle($reg->getKeyHandleBinary());
    }
public function generateSignRequest(RegistrationInterface $reg): SignRequest
    {
        return (new SignRequest())
            ->setAppId($this->getAppId())
            ->setChallenge($this->generateChallenge())
            ->setKeyHandle($reg->getKeyHandleBinary());
    }
public function generateSignRequest ( RegistrationInterface $ reg ) : SignRequest { return ( new SignRequest ( ) ) -> setAppId ( $ this -> getAppId ( ) ) -> setChallenge ( $ this -> generateChallenge ( ) ) -> setKeyHandle ( $ reg -> getKeyHandleBinary ( ) ) ; }
Creates a new SignRequest for an existing registration for an
authenticating user, used by the `u2f.sign` API.

@param RegistrationInterface $reg one of the user's existing Registrations
@return SignRequest
Creates a new SignRequest for an existing registration for an authenticating user used by the u2f . sign API .