render()

in src/AuthorizeGitHub.js [55:78]


  render() {
    const existingToken = localStorage.getItem("gh_pat");
    if (existingToken) {
      return (
        <div style={{ display: "inline" }}>
          <a href="/github_logout">log out</a>
        </div>
      );
    }
    if (!this.state.code) {
      return (
        <div style={{ display: "inline" }}>
          <a href="https://github.com/login/oauth/authorize?scope=public_repo&client_id=7e8b4df19d85405ac1b2">
            log in
          </a>{" "}
        </div>
      );
    }
    return (
      <div>
        <p>loading...</p>
      </div>
    );
  }