public function validateCode($clientRef, $code)
    {
        $response = $this->request('TFA/Validate', array($clientRef, $code));

        $serializer = SerializerBuilder::create()->build();
        $result = $serializer->deserialize(
            $response,
            'Fortytwo\SDK\TwoFactorAuthentication\Response2FA',
            'json'
        );
        return $result;
    }
public function validateCode($clientRef, $code)
    {
        $response = $this->request('TFA/Validate', array($clientRef, $code));

        $serializer = SerializerBuilder::create()->build();
        $result = $serializer->deserialize(
            $response,
            'Fortytwo\SDK\TwoFactorAuthentication\Response2FA',
            'json'
        );
        return $result;
    }
public function validateCode ( $ clientRef , $ code ) { $ response = $ this -> request ( 'TFA/Validate' , array ( $ clientRef , $ code ) ) ; $ serializer = SerializerBuilder :: create ( ) -> build ( ) ; $ result = $ serializer -> deserialize ( $ response , 'Fortytwo\SDK\TwoFactorAuthentication\Response2FA' , 'json' ) ; return $ result ; }
Validate authentication with the code

@api
@param string $clientRef Client reference
@param string $code      Code to validate

@return object Response
Validate authentication with the code