src/SSOBroker.php
public function login(string $username, string $password)
    {
        $this->userInfo = $this->makeRequest('POST', 'login', compact('username', 'password'));

        if (!isset($this->userInfo['error']) && isset($this->userInfo['data']['id'])) {
            return true;
        }

        return false;
    }
public function login(string $username, string $password)
    {
        $this->userInfo = $this->makeRequest('POST', 'login', compact('username', 'password'));

        if (!isset($this->userInfo['error']) && isset($this->userInfo['data']['id'])) {
            return true;
        }

        return false;
    }
public function login ( string $ username , string $ password ) { $ this -> userInfo = $ this -> makeRequest ( 'POST' , 'login' , compact ( 'username' , 'password' ) ) ; if ( ! isset ( $ this -> userInfo [ 'error' ] ) && isset ( $ this -> userInfo [ 'data' ] [ 'id' ] ) ) { return true ; } return false ; }
Login client to SSO server with user credentials.

@param string $username
@param string $password

@return bool
Login client to SSO server with user credentials .