How To Use GitHub OAuth in your App Like a Pro

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • oauth

  • app.get('/', (req, res) => { res.redirect('https://github.com/login/oauth/authorize?client_id={client_id}&state={state}'); })

  • Puts Debuggerer

    Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.

  • app.get('/:code', async (req, res) => { const { code } = req.params; const response = await axios.post( 'https://github.com/login/oauth/access_token', { client_id: config.get('client_id'), client_secret: config.get('client_secret'), code, }, { headers: { Accept: 'application/json', // for a json response from github }, } ); console.log(response.data.access_token) })

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • node-config

    Node.js Application Configuration

  • I used the config package to hide my client_id and client_secret just in case of publishing to GitHub. You should do the same.

  • sultanrepos

    A tutorial app to practice github oauth and api

  • I believe this is clear enough. If you want to see how I used this check out the source code on Github.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Learning Go by examples: part 8 - Automatically cross-compile & release your Go app

    3 projects | dev.to | 1 Sep 2021
  • GitHub URLs in package.json

    2 projects | dev.to | 13 Aug 2021
  • Committing Changes within VS Code

    3 projects | dev.to | 9 Jun 2021
  • A Beginner's Guide to Front-End Development

    1 project | dev.to | 4 May 2024
  • 5 Free Tools to Boost Developer Productivity

    1 project | dev.to | 3 May 2024