title: Keeping Google login persistent on reloading single page react app
body: <p>I am currently working on a making a <code>react-redux</code> application and it uses Google login to authenticate the user.</p>
  
  <p>The app uses <a href="https://www.npmjs.com/package/react-google-login" rel="nofollow noreferrer">react-google-login</a> implemented as follows:</p>
  
  <pre><code>render() {
  
      return (
          &lt;div&gt;
  
              &lt;h2&gt; Find destinations ✈️&lt;/h2&gt;
  
              &lt;GoogleLogin
                  clientId={this.googleClientId}
                  buttonText="Sign-in with Google"
                  onSuccess={this.responseGoogle}
              /&gt;
  
          &lt;/div&gt;
      );
  }
  </code></pre>
  
  <p>Currently if I run this code, on clicking the login button, I am able to access the sign in tokens and other user information hence allowing logging in but if I reload the page, this is lost as the app is brought back to original state.</p>
  
  <p>How do I keep the Google login using OAuth2 persistent even after a reload?</p>