src/SSOServer.php
protected function fail(?string $message, bool $isRedirect = false, ?string $url = null)
    {
        if (!$isRedirect) {
            throw new SSOServerException($message);
        }

        $this->redirect($url, ['sso_error' => $message]);
    }
protected function fail(?string $message, bool $isRedirect = false, ?string $url = null)
    {
        if (!$isRedirect) {
            throw new SSOServerException($message);
        }

        $this->redirect($url, ['sso_error' => $message]);
    }
protected function fail ( ? string $ message , bool $ isRedirect = false , ? string $ url = null ) { if ( ! $ isRedirect ) { throw new SSOServerException ( $ message ) ; } $ this -> redirect ( $ url , [ 'sso_error' => $ message ] ) ; }
If something failed, throw an Exception or redirect.

@param null|string $message
@param bool $isRedirect
@param null|string $url

@throws SSOServerException

@return void
If something failed throw an Exception or redirect .