public function validate(): bool
    {
        if (! $this->requestIsValid()) {
            return false;
        }

        $requestOptions = $this->getDefaultRequestOptions();
        $customOptions = $this->getCustomRequestOptions();

        if (! empty($customOptions) && is_array($customOptions)) {
            $requestOptions = array_merge($requestOptions, $customOptions);
        }

        $response = $this->guzzleClient->request('POST', self::OPENID_URL, $requestOptions);

        $results = $this->parseResults($response->getBody()->getContents());

        $this->parseSteamID();
        $this->parseInfo();

        return $results->is_valid == 'true';
    }
public function validate(): bool
    {
        if (! $this->requestIsValid()) {
            return false;
        }

        $requestOptions = $this->getDefaultRequestOptions();
        $customOptions = $this->getCustomRequestOptions();

        if (! empty($customOptions) && is_array($customOptions)) {
            $requestOptions = array_merge($requestOptions, $customOptions);
        }

        $response = $this->guzzleClient->request('POST', self::OPENID_URL, $requestOptions);

        $results = $this->parseResults($response->getBody()->getContents());

        $this->parseSteamID();
        $this->parseInfo();

        return $results->is_valid == 'true';
    }
public function validate ( ) : bool { if ( ! $ this -> requestIsValid ( ) ) { return false ; } $ requestOptions = $ this -> getDefaultRequestOptions ( ) ; $ customOptions = $ this -> getCustomRequestOptions ( ) ; if ( ! empty ( $ customOptions ) && is_array ( $ customOptions ) ) { $ requestOptions = array_merge ( $ requestOptions , $ customOptions ) ; } $ response = $ this -> guzzleClient -> request ( 'POST' , self :: OPENID_URL , $ requestOptions ) ; $ results = $ this -> parseResults ( $ response -> getBody ( ) -> getContents ( ) ) ; $ this -> parseSteamID ( ) ; $ this -> parseInfo ( ) ; return $ results -> is_valid == 'true' ; }
Checks the steam login.

@return bool
@throws GuzzleException
Checks the steam login .