public function getToken()
    {
        $info = $this
            ->gitHubUserAuth()
            ->getStoreData();

        $token = isset($info['token'])
            ? $info['token']
            : getenv('PROJECTX_GITHUB_TOKEN') ?: null;

        if (!isset($token)) {
            throw new \RuntimeException(
                "GitHub user authentication token is required. \r\n\n " .
                '[info] Run vendor/bin/project-x github::auth to get started.'
            );
        }

        return $token;
    }
public function getToken()
    {
        $info = $this
            ->gitHubUserAuth()
            ->getStoreData();

        $token = isset($info['token'])
            ? $info['token']
            : getenv('PROJECTX_GITHUB_TOKEN') ?: null;

        if (!isset($token)) {
            throw new \RuntimeException(
                "GitHub user authentication token is required. \r\n\n " .
                '[info] Run vendor/bin/project-x github::auth to get started.'
            );
        }

        return $token;
    }
public function getToken ( ) { $ info = $ this -> gitHubUserAuth ( ) -> getStoreData ( ) ; $ token = isset ( $ info [ 'token' ] ) ? $ info [ 'token' ] : getenv ( 'PROJECTX_GITHUB_TOKEN' ) ? : null ; if ( ! isset ( $ token ) ) { throw new \ RuntimeException ( "GitHub user authentication token is required. \r\n\n " . '[info] Run vendor/bin/project-x github::auth to get started.' ) ; } return $ token ; }
Get GitHub user authentication token.

@throws RuntimeException

@return string
Get GitHub user authentication token .