title: How to display that a user is connected to GitHub
body: <p>I am developing a website like Heroku. I confused what should I do with the Github OAuth part? when you wanna <a href="https://signup.heroku.com/login" rel="nofollow noreferrer">register in Heroku</a> and login you can not use OAuth ways (login/register using Github).</p>
  <p><a href="https://i.stack.imgur.com/MkbZT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MkbZT.png" alt="enter image description here" /></a></p>
  <p>but after login you can create App. now one of your options to upload your codes in the Heroku is to connect your Heroku account to your Github account.</p>
  <p><strong>My problem</strong></p>
  <p>When the user is logged in how could I redirect the user to another page and after authentication (Github OAuth) how could I detect that this user previously logged in and the user does not need re-login?</p>
  <p>Exactly what the Heroku did.</p>
  <p>I can not understand how can I send another data to the Github OAuth login page and retrieve it back in callback url to detect which user is logged in now and save his/her access_token &amp; refresh_token in database.</p>
  <p>Not that I use expressjs express-session sequelize and ejs.</p>