src/Google/GoogleLogin.php
function getLoginUrl($state) {
        $loginUrl = "https://accounts.google.com/o/oauth2/auth?"
            . "client_id=" . $this->client_id
            . "&redirect_uri=" . $this->redirect
            . "&state=" . $state
            . "&response_type=code"
            . "&scope=email%20profile" 
            . "&include_granted_scopes=true";

        if ( $this->openid_realm ) {
            $loginUrl .= "&openid.realm=" . $this->openid_realm;
        }
        return $loginUrl;
    }
function getLoginUrl($state) {
        $loginUrl = "https://accounts.google.com/o/oauth2/auth?"
            . "client_id=" . $this->client_id
            . "&redirect_uri=" . $this->redirect
            . "&state=" . $state
            . "&response_type=code"
            . "&scope=email%20profile" 
            . "&include_granted_scopes=true";

        if ( $this->openid_realm ) {
            $loginUrl .= "&openid.realm=" . $this->openid_realm;
        }
        return $loginUrl;
    }
function getLoginUrl ( $ state ) { $ loginUrl = "https://accounts.google.com/o/oauth2/auth?" . "client_id=" . $ this -> client_id . "&redirect_uri=" . $ this -> redirect . "&state=" . $ state . "&response_type=code" . "&scope=email%20profile" . "&include_granted_scopes=true" ; if ( $ this -> openid_realm ) { $ loginUrl .= "&openid.realm=" . $ this -> openid_realm ; } return $ loginUrl ; }
Get the login url
Get the login url